Wednesday, 24 September 2014

Convert JSFuck to normal JS


Many of you already know JSFuck. For those who don't, it's a script that basically turns any JavaScript code into something written using only []()!+.
  • Input: A string with valid JSFuck code.
  • Output: A string with the regular JavaScript code that has been previously JSFucked to generate the input.
Answer:

Run in console of your browser
alert(/.+(?=\n})/.exec(eval(prompt().slice(0,-2))))

ref:
http://patriciopalladino.com/blog/2012/08/09/non-alphanumeric-javascript.html?utm_content=buffer489d0&utm_source=buffer&utm_medium=twitter&utm_campaign=Buffer

http://codegolf.stackexchange.com/questions/28714/convert-jsfuck-to-normal-js


No comments:

Post a Comment