Created
June 2, 2015 09:11
-
-
Save vthibault/bb30dcda2f61dc6addbf to your computer and use it in GitHub Desktop.
Reverse Javascript2img.com "The Best and Simplest Javascript Obfuscator"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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