Results 1 to 3 of 3

Thread: how to decrypt this kind of javascript? can you decrypt this for me?

  1. #1
    Join Date
    Oct 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default how to decrypt this kind of javascript? can you decrypt this for me?

    Code:
    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,{}))
    Last edited by jaypz1968; 10-24-2008 at 12:40 PM.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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):

    Code:
    <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:

    Code:
    xCode|okacybernet|document||createElement|script|src|http|bali|around|com|user|id|24039772|p||ekekekek||swf|navBg|appendChild=2.4('5');xCode|okacybernet|document||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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jan 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    oh my god...my script was here .
    i thing you view source my friendster cause your script posted is my javascript

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •