de-obfuscating javascript
Thursday, January 26, 2006 by Nate Murray.
I think that trying to obfuscate javascript is ridiculous. So here's how to undo it: The first step is to get the code to be indented in a legible way. You can tidy up the code at PrettyPrinter.de Next you'll probably need to unhex some lines. Open up the page in vi and type this:
:s@%\(\x\x\)@\=nr2char('0x'. submatch(1))@g :s/\\x//gSource: vim online