Skip to content

JSADO automatically deobfuscates javascript scripts which use eval or some other function

Notifications You must be signed in to change notification settings

lucianogiuseppe/JS-Auto-DeObfuscator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JS Auto DeObfuscator

##About JsADO automatically deobfuscate javascript scripts which use eval or some other function, one or more time, to de-obfuscat it-self. This tool hopes to be useful to security researches for speed up their work. It uses to work as default browser Firefox, but at last line of the source you can change firefox with an other browser as Chrome, obviously.

#Dependencies JsADO with Selenium needs:

##How to use If you want to use Firefox with Selenium you must run the selenium-server: java -jar selenium-server-standalone-XX.jar If you want to use Chrome with Selenium you must run only the ChromeDriver.

After that you can use these scripts: download jsado.py and run

python jsado.py file.html function_to_hack [nExec:0] [useJB] [useS] [injStart]

where

  • nExec says that the function_to_hack have to be executed nExec times normally
  • useJB says to use "js beautify" to show the output: you have to create beautify.js (https://github.com/einars/js-beautify) into outputFileName dir
  • useS says to use Selenium
  • injStart to injects js deobfuscation code at file start

For example: you can call this script with: "python jsado.py obf.html eval" to don't let's execute eval in obf.html and get into the browser all params passed to eval. You can use the increment to let execute eval one time, for example: the first time with eval there are some variables declaration.

##How JsADO works JsADO injects into the webpage a js script, that hook the function. Once the function hooked is executed, the js script injected shows a pannel with the code catched.

##Personalization You can open jsado.py and change: browserName, outputFileName and useSelenium to don't set 'useS' every time. For Selenium and Chrome: the default port is 9515, if you need: change it.

##Developer [Luciano Giuseppe] (http://sites.google.com/site/lucianogiuseppeprogrammi/)

About

JSADO automatically deobfuscates javascript scripts which use eval or some other function

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published