Screenshots
Example Usage
var JavaScriptObfuscator = require('javascript-obfuscator');
var obfuscationResult = JavaScriptObfuscator.obfuscate(
`
(function(){
var variable1 = '5' - 3;
var variable2 = '5' + 3;
var variable3 = '5' + - '2';
var variable4 = ['10','10','10','10','10'].map(parseInt);
var variable5 = 'foo ' + 1 + 1;
console.log(variable1);
console.log(variable2);
console.log(variable3);
console.log(variable4);
console.log(variable5);
})();
`,
{
compact: false,
controlFlowFlattening: true,
controlFlowFlatteningThreshold: 1,
numbersToExpressions: true,
simplify: true,
stringArrayShuffle: true,
splitStrings: true,
stringArrayThreshold: 1
}
);
console.log(obfuscationResult.getObfuscatedCode());
/*
var _0x9947 = [
'map',
'log',
'foo\x20',
'bvmqO',
'133039ViRMWR',
'xPfLC',
'ytpdx',
'1243717qSZCyh',
'2|7|4|6|9|',
'1ErtbCr',
'1608314VKvthn',
'1ZRaFKN',
'XBoAA',
'423266kQOYHV',
'3|0|5|8|1',
'235064xPNdKe',
'13RUDZfG',
'157
See also
AMSI Bypass Techniques
Open Source
Collection of PowerShell AMSI (Antimalware Scan Interface) bypass techniques. Patches AMSI in-memory…
404
Open Source
A new approach to fighting cross-session tracking: multi-layer online fingerprint obfuscation. Spoof…
aidsfuscator
Free
Aidsfuscator is a java bytecode obfuscator that aims to become the best, if not then one of the best…
msfvenom
Open Source
Kali
Metasploit standalone payload generator and encoder. Creates payloads for all platforms with customi…
EagleVM
Open Source
Native code virtualizer for x64 binaries…
Donut
Open Source
Generates position-independent shellcode from .NET assemblies, PE files, scripts (VBScript, JScript)…