Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
crawler-ninja-expired
Advanced tools
This Crawler.Ninja plugin aims to find expired domains by crawling web sites.
Help & Forks welcome ! or please wait ... work in progress !
Actually, the expired domain data are stored in the a txt file. We plan to add more flexibilities in the upcoming releases.
$ npm install crawler-ninja crawler-ninja-expired simple-proxies --save
var proxyLoader = require("simple-proxies/lib/proxyfileloader");
var crawler = require("crawler-ninja");
var ep = require("crawler-ninja-expired");
var cs = require("crawler-ninja/plugins/console-plugin");
var proxyFile = "proxies.txt";
// Load proxies
var config = proxyLoader.config()
.setProxyFile(proxyFile)
.setCheckProxies(true)
.setRemoveInvalidProxies(true);
proxyLoader.loadProxyFile(config, function(error, proxyList) {
if (error) {
console.log(error);
}
else {
crawl(proxyList);
}
});
function crawl(proxyList){
var end = function(){
console.log("Crawl done !");
};
// Set the Crawl config
crawler.init({
externalDomains : true,
externalHosts : true,
firstExternalLinkOnly : true,
images : false,
scripts : false,
links : false, //link tags used for css, canonical, ...
followRedirect : true,
retries : 0
}, end, proxyList);
var ed = new expired.Plugin({
expiredTxtFile : "./logs/expireds.txt",
majecticKey : "[your majecticKey]",
whois : {user : "[your whoisxmlapi name]", password : "[your whoisxmlapi password]"}
});
var consolePlugin = new cs.Plugin();
crawler.registerPlugin(consolePlugin);
crawler.registerPlugin(ed);
crawler.queue({url : "http://yourdomain.com"});
}
Using proxies is not mandatory but it is recommanded. Remove the attributes proxyList in the crawler constructor if you don't want to use proxies.
You can find all the crawler options on this page.
FAQs
Expired domains finder for crawler.ninja
The npm package crawler-ninja-expired receives a total of 1 weekly downloads. As such, crawler-ninja-expired popularity was classified as not popular.
We found that crawler-ninja-expired demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.