Untangle obfuscated javascript, e.g:
a=1; b=2; c=3; d=Math.random()*(a+b+c)
➡️d=Math.random()*(6)
a="some"; b="text"; c=a+b;
➡️c="sometext";
eval("callFunc()")
➡️callFunc();
a="shorttext"; b=a.length();
➡️a="shorttext"; b=9;
arr=[2,4,6,8]; val=arr[2];
➡️arr=[2,4,6,8]; val=4;
- ...
Tested with Debian 8 (jessie) and python 2.7
PIP
apt-get install python-pip
pip install -r requirements.txt
PyV8
git clone https://github.com/qistoph/jsuntangle.git
cd jsuntangle
./bin/jsuntangle
git clone https://github.com/qistoph/jsuntangle.git
cd jsuntangle
sudo python setup.py install
jsuntangle
Run tests:
./checks/run.sh
Check differences:
./checks/compare.sh
Check Travis-CS config:
travis lint .travis.yml
Preview README.md
grip README.md 0.0.0.0