PDA

View Full Version : how to decrypt this kind of javascript? can you decrypt this for me?



jaypz1968
10-24-2008, 12:12 PM
eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('0=2.4(\'5\');0.6=\'7://8-9.a/b?c=d&e=1&f=1/g.i&h=3\';j.k(0)',21,21,'xCode|okacybernet|document||createElement|script|src|http|bali|around|com|user|id|24039772|p||ekekekek||swf|navBg|appendChild'.split('|'),0 ,{}))

jscheuer1
10-24-2008, 12:41 PM
The code (at least by itself) is invalid, and is not encrypted. It is packed (generally done to save on file size, though that isn't apparent here, I think the code must be longer in the first place to benefit from packing). To get the code back to where it was before it was packed, make up a page and put only this on it (replacing eval with document.write):


<script type="text/javascript">
document.write(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('0=2.4(\'5\');0.6=\'7://8-9.a/b?c=d&e=1&f=1/g.i&h=3\';j.k(0)',21,21,'xCode|okacybernet|document||createElement|script|src|http|bali|around|com|user|id|24039772|p||ekekekek||swf|navBg|appendChild'.split('| '),0,{}))
</script>

Which will get you this:


xCode|okacybernet|document||createElement|script|src|http|bali|around|com|user|id|24039772|p||ekekekek||swf|navBg|appendChild=2.4('5');xCode|okacybernet|documen t||createElement|script|src|http|bali|around|com|user|id|24039772|p||ekekekek||swf|navBg|appendChild.6='7://8-9.a/b?c=d&e=1&f=1/g.i&h=3';j.k(xCode|okacybernet|document||createElement|script|src|http|bali|around|com|user|id|24039772|p||ekekekek||swf|navBg|appendChild)

when viewed in the browser. Copy that, it is the unpacked script code used to make the packed code.

okacybernet
01-25-2009, 05:37 AM
oh my god...my script was here .
:) i thing you view source my friendster cause your script posted is my javascript :)