Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
CrushIt is a commandline tool for crawling web pages and compiling scripts.
npm install -g crushit
# Basic usage
crushit [options] [url] [file]
## Beautify output code
crushit -b [url]
## Include comments in the output code
crushit -c [url]
## Perform maximum optimisation
crushit -x [url] [output filename]
## Beautify output code and include comments
crushit -bc [url]
# Compiling scripts from my website with default options
crushit http://www.ragingflame.co.za
# Compiling scripts from my website with options and specifying an output file
crushit -xm http://www.ragingflame.co.za crushed.js
var crushIt = require("crushit");
crushIt = new crushIt();
crushIt.squeeze(options, callback);
# options
website - (String) Web page URL
comments - (Boolean) Keep comments
beatify - (Boolean) Beautify output code
mangle - (Boolean) Mangle variable names
max - (Boolean) Perform maximum optimisation
callback - (Function) Callback function that takes 2 arguments, the first one is an error flag or object and the second one is the output code
var crushIt = require("crushit");
crushIt = new crushIt();
crushIt.squeeze({
website: "http://www.ragingflame.co.za",
comments: false,
beatify: false,
mangle: true,
max: true
},
function (error, code) {
if (error) {
console.error(error);
}
else {
console.log(code);
}
});
The options
argument may also be a string variable
var crushIt = require("crushit");
crushIt = new crushIt();
crushIt.squeeze("http://www.ragingflame.co.za", function (error, code) {
if (error) {
console.error(error);
}
else {
console.log(code);
}
});
npm test
(MIT License)
Copyright (c) 2012 Qawelesizwe Mlilo qawemlilo@gmail.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
CrushIt is a commandline tool for crawling web pages and compiling scripts
The npm package crushit receives a total of 0 weekly downloads. As such, crushit popularity was classified as not popular.
We found that crushit 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
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.