- Launch Firefox and browse to 'about:config'
- Create a new boolean config preference named
browser.dom.window.dump.enabled
and set it to 'true' - Close Firefox. Now run "firefox.exe -console". A console window will open along with the browser window.
- Edit file containing obfuscated JavaScript and replace "document.write" with "dump"
- Open the file in Firefox.
- Disable NoScript, Firebug, or other scripting add-ons and reload the file if necessary.
- Switch to the JavaScript Console window. Now you can read the deobfuscated code.
Wednesday, March 19, 2008
Cool Firefox / JavaScript Trick
Here's an easy trick for deobfuscating JavaScript within Firefox. Via BornGeek and Offensive Computing.
No comments:
Post a Comment