This file contains hidden or 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
| if(window.location.hash) { | |
| alert(window.location.hash.replace("#","")); | |
| //above we simply get rid of the first occurance of #, without global set, only first match dealt with | |
| } else { | |
| alert('no hash for you'); | |
| } | |
| //this is a WHAK.com script :) |
This file contains hidden or 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
| //eample of weird and crazy obfuscation on http://www.whak.ca/ (whak-a-script) | |
| var W,H,A,K,com;for(W='̷̷̷̷̷̧̛̛̛̛̛͇̟͕̰̗͎͇͕̗̖͇͕͔͎̎̎̎̎̍̍̇̍̍̇͛̎̚̕ͅ҉̷̷͕̎̍̍̎̓͛̎͛̚ͅ\n̷̛͇͕͕̟͔̎ͨ͛ͅͅ\n̷̷̛̥͎̰͇͇̟͉ͣͨͨ̎ͣͨͨ҉̷̵̵̴͇̟͇͕͕̟̣̘̘͔̎ͫ̎ͨ̎̓̎̎ͣ͊͊̋ͣ͊͊҉͇͕͕̟̎ͨ̎̓҉̷͇̟̎̎̓̎͛\n̷̷̛͇̟͉ͣͨͨ҉̷͇̟͇͕͕̟̎ͫ̎ͨ̎̓͛',K='',com=31;127>com;com++)K+=String.fromCharCode(com);K=K.split(''),A='̫̎̉̔̊̇ͅ҉̴̧̖̼̙̩̘̺̝̭͙̓̀̿ͫͬ͊̋́͛̃͗͌ͭͦ̐͆̈́͘͡͝͏̶̵̷̸̡̨̢̛͉̪̤̟̥̰̱͔͕͇̗͎̻̣̞͍̦̬̜͈̳͓̹̲̠̮̯͖͚͂̂ͪ̄ͯ̾̑̽ͨ̌̍ͣ̆ͮ̈̓ͩ͐͑ͤͧ̀̏̅̒͒͋ͥ́̕̚͢͜͟͠͞'.split('');for(var S in A)W=W.split(A[S]).join(K[S]);this['eval'](W); | |
| //this was our original JavaScript source code: | |
| var code = " alert( 'ScriptCompress.com' ); "; | |
| var command="eval"; //command="\x65val"; | |
| function runner( Δ, ǃ ) { \u0065v\u0061l( ǃ )( Δ ) }; | |
| runner( code, command ); | |
| //ALL BELOW SAMPLES ARE ACTUAL WORKING JAVASCRIPT |
This file contains hidden or 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
| Δ=~[],Δ={ǃǃǃ:++Δ,ππππ:(!1+"")[Δ],ǃǃπ:++Δ,πǃπǃ:(!1+"")[Δ],ǃπǃ:++Δ,πǃππ:({}+"")[Δ],ππǃπ:(Δ[Δ]+"")[Δ], | |
| ǃππ:++Δ,πππǃ:(!0+"")[Δ],πǃǃ:++Δ,πǃπ:++Δ,ππǃǃ:({}+"")[Δ], | |
| ππǃ:++Δ,πππ:++Δ,πǃǃǃ:++Δ,πǃǃπ:++Δ}, | |
| Δ.πǃ=(Δ.πǃ=Δ+"")[Δ.πǃπ]+(Δ.ǃπ=Δ.πǃ[Δ.ǃǃπ])+(Δ.ππ=(Δ.π+"")[Δ.ǃǃπ])+(!Δ+"")[Δ.ǃππ]+(Δ.ǃǃ=Δ.πǃ[Δ.ππǃ])+(Δ.π=(!0+"")[Δ.ǃǃπ])+(Δ.ǃ=(!0+"")[Δ.ǃπǃ])+Δ.πǃ[Δ.πǃπ]+Δ.ǃǃ+Δ.ǃπ+Δ.π,Δ.ππ=Δ.π+(!0+"")[Δ.ǃππ]+Δ.ǃǃ+Δ.ǃ+Δ.π+Δ.ππ,Δ.π=Δ.ǃǃǃ[Δ.πǃ][Δ.πǃ], | |
| Δ.π(Δ.π(Δ.ππ+'"'+Δ.ππππ+Δ.ǃ+"\\"+Δ.ǃǃπ+Δ.πǃπ+Δ.ππǃ+Δ.ππǃǃ+Δ.ǃǃ+"\\"+Δ.ǃǃπ+Δ.πǃπ+Δ.ǃǃπ+Δ.ǃπ+"\\"+Δ.ǃǃπ+Δ.πǃπ+Δ.ππǃ+"\\"+Δ.πǃǃ+Δ.ǃǃǃ+Δ.ππǃǃ+Δ.ǃπ+Δ.ππǃπ+Δ.πππǃ+"\\"+Δ.ǃǃπ+Δ.ǃπǃ+Δ.ǃπǃ+Δ.ǃ+"\\"+Δ.ǃǃπ+Δ.πǃπ+Δ.ππǃ+"\\"+Δ.ǃǃπ+Δ.πǃπ+Δ.ππǃ+Δ.πππǃ+"\\"+Δ.ǃǃπ+Δ.ππǃ+Δ.ǃπǃ+"("+Δ.ππǃǃ+Δ.ǃπ+Δ.ππǃπ+Δ.πππǃ+","+Δ.ππǃǃ+Δ.ǃπ+"\\"+Δ.ǃǃπ+Δ.πǃπ+Δ.πǃπ+"\\"+Δ.ǃǃπ+Δ.πǃπ+Δ.πǃπ+Δ.πǃπǃ+"\\"+Δ.ǃǃπ+Δ.πǃπ+Δ.ππǃ+Δ.ππǃπ+"){"+Δ.πππǃ+"\\"+Δ.ǃǃπ+Δ.ππǃ+Δ.ππǃ+Δ.πǃπǃ+(!1+"")[Δ.ǃπǃ]+"("+Δ.ππǃǃ+Δ.ǃπ+"\\"+Δ.ǃǃπ+Δ.πǃπ+Δ.πǃπ+"\\"+Δ.ǃǃπ+Δ.πǃπ+Δ.πǃπ+Δ.πǃπǃ+"\\"+Δ.ǃǃπ+Δ.πǃπ+Δ.ππǃ+Δ.ππǃπ+")("+Δ.ππǃǃ+Δ.ǃπ+Δ.ππǃπ+Δ.πππǃ+")}\\"+Δ.ǃǃπ+Δ.ππǃ+Δ. |
This file contains hidden or 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 code = " alert( 'ScriptCompress.com' ); "; | |
| var command="eval"; //command="\x65val"; | |
| function runner( Δ, ǃ ) { \u0065v\u0061l( ǃ )( Δ ) }; | |
| runner( code, command ); |
This file contains hidden or 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
| //using encoder online tools @ http://www.scriptcompress.com/30-encoders-in-1.htm | |
| function hex(Δ){return Δ.replace(/./g,function(Δ){return'\\x'+Δ.charCodeAt(0).toString(16)})}; | |
| alert(hex('ScripCompress.com')); | |
| //lets bracket notation stuff | |
| function hex(Δ){return Δ['replace'](/./g,function(Δ){return'\\x'+Δ['charCodeAt'](0)['toString'](16)})}; | |
| alert(hex('ScripCompress.com')); |
This file contains hidden or 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
| //212 bytes | |
| function codepoints(ΔstringΔ) { | |
| return ΔstringΔ.replace(/./g, function(ΔstringΔ) { | |
| return ΔstringΔ.charCodeAt(0) + " "; | |
| }).trim().replace(/ /g, ","); | |
| } | |
| alert(codepoints("JavaScript Packer")); | |
| //first lets get rid of uneeded whitespace and linebreaks |
This file contains hidden or 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
| function codepoints(Δ) { | |
| return Δ.replace(/./g, function(Δ) { | |
| return Δ.charCodeAt(0) + " "; | |
| }).trim().replace(/ /g, ","); | |
| } | |
| alert(codepoints("JavaScript Packer")); |
This file contains hidden or 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
| function hex(Δ){ | |
| return Δ.replace(/./g, function(e){ | |
| return "\\x"+e.charCodeAt(0).toString(16); | |
| }); | |
| }; | |
| alert(hex("JavaScript Packer")); | |
| //extreme JavaScript escaping |
This file contains hidden or 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
| function octal(П){ | |
| return П.replace(/./g, function(e){ | |
| return "\\"+e.charCodeAt(0).toString(8); | |
| }); | |
| }; | |
| alert(octal("JavaScript Packer")); | |
| //extreme JavaScript escaping |
This file contains hidden or 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
| function escapeHTML(Δ){ | |
| return Δ.replace(/./g, function(e){ | |
| return "&#"+e.charCodeAt(0)+";"; | |
| }); | |
| }; | |
| alert(escapeHTML("JavaScript Packer")); |