bash-obfuscate
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -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" | ||
} | ||
} |
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
6959
0
3