Skip to content

Instantly share code, notes, and snippets.

@vthibault
Created June 2, 2015 09:11
Show Gist options
  • Save vthibault/bb30dcda2f61dc6addbf to your computer and use it in GitHub Desktop.
Save vthibault/bb30dcda2f61dc6addbf to your computer and use it in GitHub Desktop.
Reverse Javascript2img.com "The Best and Simplest Javascript Obfuscator"
<!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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment