Skip to content

Instantly share code, notes, and snippets.

@vthibault
Created June 2, 2015 09:11
Show Gist options
  • Select an option

  • Save vthibault/bb30dcda2f61dc6addbf to your computer and use it in GitHub Desktop.

Select an option

Save vthibault/bb30dcda2f61dc6addbf to your computer and use it in GitHub Desktop.

Revisions

  1. vthibault created this gist Jun 2, 2015.
    32 changes: 32 additions & 0 deletions gistfile1.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,32 @@
    <!DOCTYPE html>
    <html>
    <head>
    <title>Hacking Javascript2img.com</title>
    <style type="text/css">
    body { font-family:Arial; }
    textarea { width:100%; height:300px; }
    button { padding:20px; width:150px; height:50px; margin-top:20px; margin-bottom:20px; }
    </style>
    </head>
    <body>
    <h1>Reverse obfuscated script from Javascript2img.com</h1>

    <h2>Enter your obfuscated code</h2>
    <textarea class="from"></textarea>

    <button>Reverse</button>

    <h2>Result</h2>
    <textarea class="out"></textarea>
    </body>
    <script>
    document.querySelector('button').addEventListener('click', function(){
    function Function(a, b){
    return function(c){
    return b ? window.Function(a,b)(c) : (document.querySelector('.out').value = a);
    };
    }
    eval(document.querySelector('.from').value);
    }, false);
    </script>
    </html>