Deobfuscate/Decode Javascript?

Discussion in 'JavaScript' started by Gregg Hall, Nov 5, 2010.

  1. #1
    Hi guys,

    I don't need you to specifically decode the following code for me, but to tell me how you do it:

    \x74\x65\x78\x74\x2F\x78\x6D\x6C"?x6F\x76\x65\x72\x72\x69\x64\x65\x4D\x69\x6D\x65\x54\x79\x70\x65"?x4D\x73\x78\x6D\x6C\x32\x2E\x58\x4D\x4C\x48\x54\x54\x50"?x47\x45\x54"?x6F\x70\x65\x6E"?x73\x65\x6E\x64"?x72\x65\x73\x70\x6F\x6E\x73\x65\x54\x65\x78\x74"?x72\x61\x6E\x64\x6F\x6D"?x72\x6F\x75\x6E\x64"?x73\x6F\x72\x74"?x59\x45\x53"??x61\x6C\x6C"?
    Code (markup):
    That's the part of the code. How would you deobfuscate/decode that?
     
    Gregg Hall, Nov 5, 2010 IP
  2. Nythe

    Nythe Peon

    Messages:
    30
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    put the code in an alert and see what the browser returns. It will automatically decode most of the encoded JS, though I'm not quite sure exactly how it does it.
     
    Nythe, Nov 5, 2010 IP
  3. krsix

    krsix Peon

    Messages:
    435
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #3
    text/xml 
    overrideMimeType
    Msxml2.XMLHTTP
    GET
    open
    send
    responseText
    random
    round
    sort
    YES
    all
    Code (markup):
    \x00 is simply hex, kinda. Just replace \x and run it throguh any available internet hex to ascii translator.
    Easier to just wrap the whole thign in alert though.
     
    krsix, Nov 5, 2010 IP
  4. Gregg Hall

    Gregg Hall Peon

    Messages:
    613
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #4
    thanks, that's what i ended up doing
     
    Gregg Hall, Nov 5, 2010 IP