1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Deobfuscate/Decode Javascript?

Discussion in 'HTML & JavaScript' started by Deusdies, Nov 5, 2010.

  1. Deusdies

    Deusdies Regular Member

    Joined:
    May 22, 2009
    Messages:
    261
    Likes Received:
    190
    Hi guys,

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

    Code:
    \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"?
    That's the part of the code. How would you deobfuscate/decode that?
     
  2. inaga

    inaga Newbie

    Joined:
    Feb 4, 2010
    Messages:
    12
    Likes Received:
    3
    Treat the "data" as a String.

    Code:
    It was...
    \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"?
    
    So I made it this...
    var a = "\x74\x65\x78\x74\x2F\x78\x6D\x6C";
    var b = "\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";
    alert(a);
    alert(b);
    
    Which really looks like this..
    var a = "text/xml";
    var b = "overrideMimeTypeMsxml2.XMLHTTPGETopensendresponseTextrandomroundsortYESall";
    
     
    Last edited: Nov 19, 2010
  3. heiska

    heiska Junior Member

    Joined:
    Dec 5, 2008
    Messages:
    138
    Likes Received:
    169
    Busted lol, somebody tries to decode blackhat codebreaker :D