Кодировка

Discussion in 'PHP' started by Yahoooo, 21 Feb 2013.

  1. Yahoooo

    Yahoooo New Member

    Joined:
    2 Oct 2011
    Messages:
    20
    Likes Received:
    0
    Reputations:
    0
    Сабж по теме. Как дешифровать данную кодировку?

     
  2. Virous

    Virous New Member

    Joined:
    31 Jan 2013
    Messages:
    17
    Likes Received:
    0
    Reputations:
    0
    Похоже на код Unicode таблицы.
     
  3. Yahoooo

    Yahoooo New Member

    Joined:
    2 Oct 2011
    Messages:
    20
    Likes Received:
    0
    Reputations:
    0
    PHP:
    <script language='javascript'>     function FrameLoaded()     {         var curr_val=document.getElementById('vflbets').innerHTML;         if(curr_val.indexOf('<!--load-->')!=-1document.getElementById('vflbets').innerHTML='';         document.getElementById('vfl_iframe').style.height='530px';     }      function rc(elmatchselforced)     {         obj=document.forms['BetLine'].elements[el.name];         for(var i=0i<obj.lengthi++)             if (obj[i].value!=el.valueobj[i].c=false;         if(el.|| (typeof(el.c)=="undefined" && forced)) el.c=el.checked=false;         else el.c=true;         document.cookie="b"+match+"="+((!el.c)?"0":sel)+";";     }     function ShowAddons(id)     {         var i=0;         while(1)         {             var addon=document.getElementById('r'+id+'_'+i);             if(!addon) break;             if(addon.style.display=='none')             {                  addon.style.display='';                  document.getElementById('t'+id+'_1').innerHTML='Свернуть роспись';                  document.getElementById('t'+id+'_2').innerHTML='Свернуть роспись';                  document.cookie="t"+id+"=0;";              }else{                  addon.style.display='none';                  document.getElementById('t'+id+'_1').innerHTML='Показать роспись';                  document.getElementById('t'+id+'_2').innerHTML='Показать роспись';                  document.cookie="t"+id+"=1;";              }          i++;         }     }  function changeDate(val) {     vfl_iframe.setSelectedMatchday(val); }  function getVFLData(valforced_change) {     var ai=new AJAXInteraction("ajax_index.php?page=line&action=2&vfl=1&event="+val,         function(str)         {             if(str.indexOf('smallwnd2')==-&& curr_date<30 && first_load)             {                 curr_date=(curr_date|0);                 curr_date+=1;                 changeDate(curr_date);                 return;             }             document.getElementById('vflbets').innerHTML=str;             first_load=0;         }     );       ai.doPost(); }  /*setVflMatchday({"season_no":season_id, "season_name":season_name, "match_day":matchday});*/ var curr_date=0;//current match date var curr_season='';//current season var status_date=0;//date by setstatus var first_load=1;//first page load flag function setVflMatchday(in_val) {     document.getElementById('vflbets').innerHTML="<center><img src='img/loading6.gif'></center>";     curr_date=in_val.match_day;     if(status_date>curr_date) curr_date=status_date;     curr_season=in_val.season_name;     getVFLData(in_val.season_name+';'+in_val.match_day); }   /*setVflStatus({"servertime": servertime,"season_no": season_id, "season_name": season_name, match_day": match_day,"period": period, "countdown": countdown});*/ function setVflStatus(in_val) {     if(!curr_date || curr_date<in_val.match_day || curr_season!=in_val.season_name)     {         if(in_val.match_day<=0) in_val.match_day=1;         document.getElementById('vflbets').innerHTML="<center><img src='img/loading6.gif'></center>";         curr_date=in_val.match_day;         curr_season=in_val.season_name;         status_date=curr_date;         changeDate(curr_date);     } }  /******** JSON Class - for old browsers ********/ if (typeof JSON !== 'object') {     JSON = {}; } (function () {     'use strict';     function f(n) {         // Format integers to have at least two digits.         return n < 10 ? '0' + n : n;     }     if (typeof Date.prototype.toJSON !== 'function') {         Date.prototype.toJSON = function (key) {             return isFinite(this.valueOf())                 ? this.getUTCFullYear() + '-' +                     f(this.getUTCMonth() + 1) + '-' +                     f(this.getUTCDate()) + 'T' +                     f(this.getUTCHours()) + ':' +                     f(this.getUTCMinutes()) + ':' +                     f(this.getUTCSeconds()) + 'Z'                 : null;         };         String.prototype.toJSON =             Number.prototype.toJSON =             Boolean.prototype.toJSON = function (key) {                 return this.valueOf();             };     }     var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,         escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,         gap,         indent,         meta = { // table of character substitutions             '\b': '\\b',             '\t': '\\t',             '\n': '\\n',             '\f': '\\f',             '\r': '\\r',             '"' : '\\"',             '\\': '\\\\'         },         rep;     function quote(string) {         escapable.lastIndex = 0;         return escapable.test(string) ? '"' + string.replace(escapable, function (a) {             var c = meta[a];             return typeof c === 'string'                 ? c                 : '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4);         }) + '"' : '"' + string + '"';     }     function str(key, holder) { // Produce a string from holder[key].         var i, // The loop counter.             k, // The member key.             v, // The member value.             length,             mind = gap,             partial,             value = holder[key]; // If the value has a toJSON method, call it to obtain a replacement value.         if (value && typeof value === 'object' &&                 typeof value.toJSON === 'function') {             value = value.toJSON(key);         }         if (typeof rep === 'function') {             value = rep.call(holder, key, value);         } // What happens next depends on the value's type.         switch (typeof value) {         case 'string':             return quote(value);         case 'number': // JSON numbers must be finite. Encode non-finite numbers as null.             return isFinite(value) ? String(value) : 'null';         case 'boolean':         case 'null':             return String(value);         case 'object':             if (!value) {                 return 'null';             } // Make an array to hold the partial results of stringifying this object value.             gap += indent;             partial = []; // Is the value an array?             if (Object.prototype.toString.apply(value) === '[object Array]') {                 length = value.length;                 for (i = 0; i < length; i += 1) {                     partial[i] = str(i, value) || 'null';                 }                 v = partial.length === 0                     ? '[]'                     : gap                     ? '[\n' + gap + partial.join(',\n' + gap) + '\n' + mind + ']'                     : '[' + partial.join(',') + ']';                 gap = mind;                 return v;             } // If the replacer is an array, use it to select the members to be stringified.             if (rep && typeof rep === 'object') {                 length = rep.length;                 for (i = 0; i < length; i += 1) {                     if (typeof rep[i] === 'string') {                         k = rep[i];                         v = str(k, value);                         if (v) {                             partial.push(quote(k) + (gap ? ': ' : ':') + v);                         }                     }                 }             } else { // Otherwise, iterate through all of the keys in the object.                  for (k in value) {                     if (Object.prototype.hasOwnProperty.call(value, k)) {                         v = str(k, value);                         if (v) {                             partial.push(quote(k) + (gap ? ': ' : ':') + v);                         }                     }                 }             }             v = partial.length === 0                 ? '{}'                 : gap                 ? '{\n' + gap + partial.join(',\n' + gap) + '\n' + mind + '}'                 : '{' + partial.join(',') + '}';             gap = mind;             return v;         }     } // If the JSON object does not yet have a stringify method, give it one.     if (typeof JSON.stringify !== 'function') {         JSON.stringify = function (value, replacer, space) {             var i;             gap = '';             indent = '';             if (typeof space === 'number') {                 for (i = 0; i < space; i += 1) {                     indent += ' ';                 } // If the space parameter is a string, it will be used as the indent string.             } else if (typeof space === 'string') {                 indent = space;             }             rep = replacer;             if (replacer && typeof replacer !== 'function' &&                     (typeof replacer !== 'object' ||                     typeof replacer.length !== 'number')) {                 throw new Error('JSON.stringify');             }             return str('', {'': value});         };     } // If the JSON object does not yet have a parse method, give it one.     if (typeof JSON.parse !== 'function') {         JSON.parse = function (text, reviver) {             var j;             function walk(holder, key) {                 var k, v, value = holder[key];                 if (value && typeof value === 'object') {                     for (k in value) {                         if (Object.prototype.hasOwnProperty.call(value, k)) {                             v = walk(value, k);                             if (v !== undefined) {                                 value[k] = v;                             } else {                                 delete value[k];                             }                         }                     }                 }                 return reviver.call(holder, key, value);             }             text = String(text);             cx.lastIndex = 0;             if (cx.test(text)) {                 text = text.replace(cx, function (a) {                     return '\\u' +                         ('0000' + a.charCodeAt(0).toString(16)).slice(-4);                 });             }             if (/^[\],:{}\s]*$/                     .test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@')                         .replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']')                         .replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) {                 j = eval('(' + text + ')');                 return typeof reviver === 'function'                     ? walk({'': j}, '')                     : j;             } // If the text is not JSON parseable, then a SyntaxError is thrown.             throw new SyntaxError('JSON.parse');         };     } }()); </script>
    Вот сам полный код! Ява
     
  4. Kaimi

    Kaimi Well-Known Member

    Joined:
    23 Aug 2007
    Messages:
    1,732
    Likes Received:
    811
    Reputations:
    231
    alert(unescape(....

    И что? Считай, что там непечатаемые символы и нет смысла что-то там "раскодировать"
     
    _________________________