-3

How to deobfuscate javascript file, i have a javascript code are deobfuscate .


Code: http://pastebin.com/zFH2GidN Help me and thanks you.

7

UPDATE

Based on @ws's comment and @nderscore's code, use this JSFiddle to decode the thing.


To find the password that this script asks for, you can use a simple debugging trick.

  • Go to JSFuck and uncheck the Eval Source option.
  • Paste the obfuscated JavaScript
  • Run

You'll see:

enter image description here

It seems to be calling prompt(), so put a breakpoint on it, like this:

(I'll be using Chrome for this)

  • Open console (F12)
  • Backup the original prompt like this: window.prompt_ = window.prompt
  • Override the call to prompt with a breakpoint: window.prompt = function(a, b){ debugger; return window.prompt_(a, b); }
  • Click Run This
  • You'll break here:

enter image description here

  • Check the callstack at the right bottom.
  • Go back one function, and you'll see:

enter image description here

Bingo!

Password is forevermore:

enter image description here enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.