From 0 to hero in 60 seconds!
I often run into unknown samples which I need to quickly deobfuscate.
Scripts can often be malfomred (who has time for QA) and not play nicely during a quick dynamic analysis.
The following instructions are for setting up a local environment that will beautify and validate
JS files.
!!! USE AT YOUR OWN RISK !!!
- Install NPM
- Install gulp-cli (npm install --global gulp-cli) https://github.com/gulpjs/gulp/blob/master/docs/getting-started.md
- Create directory for project
- Copy package.json into directory
- Copy gulpfile.js into directory
- Run 'npm install'
- Create directories ./in/ and ./out/
- Place javascript files in ./in/
- Run 'gulp'
Beautified files will be copied to ./out/ Any JS errors and/or warning will be displayed on screen.