Socket
Socket
Sign inDemoInstall

bash-obfuscate

Package Overview
Dependencies
55
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.0 to 1.2.1

4

lib/obfuscate.js

@@ -49,5 +49,5 @@ 'use strict';

.map(chunk => {
chunk = chunk.replace(/'/g, "'\\\''");
if(chunk in table) return '$' + table[chunk];
const id = generateId(counter++);
chunk = chunk.replace("'", "'\\\''");
table[chunk] = id;

@@ -65,4 +65,4 @@ return '$' + id;

});
res += '\nexec bash <<< "' + lines.join('$z') + '"';
res += '\neval "' + lines.join('$z') + '"';
return res;
};
{
"name": "bash-obfuscate",
"version": "1.2.0",
"version": "1.2.1",
"description": "A Node.js CLI tool and library to heavily obfuscate bash scripts.",
"main": "main.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "mocha"
},

@@ -30,3 +30,8 @@ "bin": {

"yargs": "^6.5.0"
},
"devDependencies": {
"chai": "^4.1.2",
"mocha": "^5.1.1",
"shelljs": "^0.8.1"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc