Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Basic Node.js web crawler.
$ npm install pauk
var Pauk = require('pauk'),
pauk = new Pauk({maxRequests: 10});
pauk.onFinish = function(cache) {
cache.forEach(function(v, uri) {
if (v.error) console.log("Error:\n" + v.error);
else console.log("Links:\n" + v.links.join("\n"), "\nCrawled Parents:\n" + v.parents.join("\n") + "\n");
});
};
pauk.crawl('http://example.com');
$ grunt
Constructor. Configuration defaults:
www: true, // if true, www.example.com will resolve to example.com
maxRequests: 5, // maximum number of total requests
ignoreQuery: true // if true, query part of the URI will be ignored
Object passed to the constructor will be merged to default configuration object.
Example:
var pauk = new Pauk({maxRequests: 55});
Main method that will crawl the webpage.
Example:
var pauk = new Pauk();
pauk.crawl('http://example.com');
Called when crawling is finished. Parameter passed to this function is object containing the crawling data. Keys of this object are normalized URIs and values are objects containing:
{
error: 'string', // (optional) in case of an error
assets: {
images: [], // values of src attributes of 'img' tags
scripts: [], // values of src attributes of 'script' tags
css: [], // values of href attributes of 'link' tags
other: [] // values of href attributes of 'a' tags that are not URIs
},
links: [], // values of href attributes of 'a' tags (relative are converted to absolute)
external: [] // values of href attributes of 'a' tags that are external links
}
Example:
var pauk = new Pauk();
pauk.onFinish = function(cache) {
cache.forEach(function(v, uri) {
if (v.error) console.log(uri + "\n" + v.error);
else console.log(uri + ": OK");
});
}
pauk.crawl('http://example.com');
FAQs
web crawler
The npm package pauk receives a total of 0 weekly downloads. As such, pauk popularity was classified as not popular.
We found that pauk 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.