Расшифровка Js

Discussion in 'PHP' started by [х26]VОLАND, 11 Feb 2008.

  1. mff

    mff Elder - Старейшина

    Joined:
    12 Mar 2008
    Messages:
    2,074
    Likes Received:
    701
    Reputations:
    227
    krypt3r сенкс!
     
  2. dx4r

    dx4r New Member

    Joined:
    13 Apr 2008
    Messages:
    8
    Likes Received:
    0
    Reputations:
    0
    Пожалуйста помогите расшифровать Js-скрипт

    JavaScript начал изучать толька вчера. Пробовал расшифровывать скриптом n0ne:
    Code:
    <html>
    <head>
    <title>Расшифровка JS-скрипта</title>
    <script type="text/javascript">
    function decodetest(){
    //get the input
      var t = document.getElementById('dectest').value;
    //remove carriage returns
      t = t.replace(new RegExp("\\=\r\n","gim"), "");
    //replace urlencoded values
      t = unescape(t);
    //replacement values
      var thechrs = new Array(
        ' ','!','"','#','$','%','&',"'",'(',')','*','+',',','-','.','/','0','1','2','3',
        '4','5','6','7','8','9',':',';','<','=','>','?','@','A','B','C','D','E','F','G', 
        'H','I','J','K','L','M','N','O','P','Q','R','S','T  ','U','V','W','X','Y','Z','[', 
        '\\',']','^','_','`','a','b','c','d','e','f','g','h','i',  'j','k','l','m','n','o',
        'p','q','r','s','t','u','v','w','x','y','z','{','|  ','}','~',' ','c','u','e','a',
        'a','a','a','c','e','e','e','i','i','i','a','a','e  ','ae','ae','o','o','o','u','u',
        'y','u','u','o','l','0','x','f','a','i','o','u','n  ','n','*','O','?','r','_','?',
        '?','!','<','>','_','_','_','|','|','a','a','a','c','|','|','+',  '+','c','y','+',
        '+','-','-','+','-','+','a','a','+','+','-','-','|','-','+','.','.','d','e','e',
        'e','i','i','i','i','+','+','_','_','|','i','_','o  ','o','o','o','o','o','u','p',
        'p','u','u','u','y','y','_',"'",'-','?','_','?','?','S','?','?','°','?','·','?',
        '?','?','_',' ');
    //replace js numeric array values
      var l = 32;
      for (l = 32; l < 256; l++){
        t = t.replace(new RegExp("\\[" + l + ",","gim"),"[" + thechrs[l-32] + ",");
        t = t.replace(new RegExp("\\[" + l + ",","gim"),"[" + thechrs[l-32] + ",");
      }
      for (l = 32; l < 256; l++){
        t = t.replace(new RegExp("," + l + "\\]","gim"),"," + thechrs[l-32] + "]");
        t = t.replace(new RegExp("," + l + "\\]","gim"),"," + thechrs[l-32] + "]");
      }
      for (l = 32; l < 256; l++){
        t = t.replace(new RegExp("," + l + ",","gim"),"," + thechrs[l-32] + ",");
        t = t.replace(new RegExp("," + l + ",","gim"),"," + thechrs[l-32] + ",");
      }
      ta = t;
      t = t.replace(new RegExp("(\\[[^\\]]+)\\,([^\\]]+\\])","gim"), "$1$2");
      while(ta !== t){
        ta = t;
        t = t.replace(new RegExp("(\\[[^\\]]+)\\,([^\\]]+\\])","gim"), "$1$2");
      }
    //replace entities
      var l = 32;
      for (l = 32; l < 100; l++){
        t = t.replace(new RegExp("&#" + l + ";","gim"),thechrs[l-32]);
        t = t.replace(new RegExp("&#0" + l + ";","gim"),thechrs[l-32]);
        t = t.replace(new RegExp("&#00" + l + ";","gim"),thechrs[l-32]);
      }
      var l = 100;
      for (l = 100; l < 256; l++){
        t = t.replace(new RegExp("&#" + l + ";","gim"),thechrs[l-32]);
        t = t.replace(new RegExp("&#0" + l + ";","gim"),thechrs[l-32]);
      }
    //return results
      document.getElementById("parsed").innerHTML = t;
    }
    </script>
    </head>
    <body>
    <p><label>Шифрованный текст:</label><br>
       <textarea id="dectest" rows="10" cols="80"></textarea>
    </p>
    <p><button onclick="decodetest()">Расшифровать</button></p>
    <p><label>Расшифрованный текст:</label><br>
       <textarea id="parsed" rows="10" cols="80"></textarea></p>
    </body>
    </html>
    
    но ничево у меня не расшифровало.... :(
    JS - http://dump.ru/file_catalog/958568
     
    #22 dx4r, 23 Jul 2008
    Last edited: 23 Jul 2008