Created
January 26, 2016 00:24
-
-
Save JavaScript-Packer/a208d091cd9b9fac132d to your computer and use it in GitHub Desktop.
Hidden evil eval in JavaScript www.JavaScriptCrypt.com
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
var evil_eval = (!+[] + [])[!+[] + !+[] + !+[]] + "v" + (!1 + [])[+!+[]] + (!1 + [])[!+[] + !+[]]; | |
function test() { | |
alert("WHAK.com"); | |
} | |
this[evil_eval](test()); |
Rid of the letter v?
//var evil_eval=(!0+[])[3]+"v"+(!1+[])[1]+(!1+[])[2];
var evil_eval=(!0+[])[3]+"\x76"+(!1+[])[1]+(!1+[])[2];
var evil_eval=(!0+[])[3]+\u0076+(!1+[])[1]+(!1+[])[2];//doesn't work, thinks v is a function
var evil_eval=(!0+[])[3]+"\166"+(!1+[])[1]+(!1+[])[2];
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Minified it down a bit for ya: