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-find-word
Advanced tools
Deep crawl to find word in the body of web pages by base url Simple but powerful, popular and production crawling/scraping package for Node.
Configurable level of maximum pages to visit Configurable root URL and Word to search Use event driven API, Raise 'Done' event when process ends. Return usefull statistical data. Use Cheerio to find word or phrase in the DOM. Tested with Mocha and Chai
Add 'Error' event handling. Priority queue of requests. Control rate limit. Charset detection and conversion.
'use strict';
var srv = require('crawler-find-word');
var print = function(){
var count = srv.pages.length;
for(var i=0; i < count; ){
var u = srv.pages.pop();
console.log(JSON.stringify(u));
i++;
};
}
srv.eventHandler.on('done', print);
srv.crawl('https://cnn.com/', 'trump', 2);
Running nodemon ./crawler-service.js localhost 3000
will run the unit tests with debug mode.
Running npm test
will test.
FAQs
crawler service
We found that crawler-find-word 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.