Тема: hash vkontakte
Показать сообщение отдельно

  #2  
Старый 26.12.2009, 17:27
Kandi
Познающий
Регистрация: 18.11.2009
Сообщений: 44
Провел на форуме:
134032

Репутация: 3
Отправить сообщение для Kandi с помощью ICQ
По умолчанию

Цитата:
Сообщение от felix_  
всем привет! стало интересно как расшифровать этот hash vkontakte, максимум что получилось - это в опере добавить код
function anew() {
alert(decodehash(ge('chas').value));
}

<a href="#" onclick="anew();">show hash</a>



как можно расшифровать этот hash в php скрипте?

PHP код:
<script type=\"text/javascript\">
<!--


/**
 * Events
 **/
var KEY = window.KEY = {
  LEFT: 37,
   UP: 38,
   RIGHT: 39,
   DOWN: 40,
   DEL: 8,
   TAB: 9,
   RETURN: 13,
   ESC: 27,
   PAGEUP: 33,
   PAGEDOWN: 34,
   SPACE: 32
 };


window.dec_hash = function(hash) {
  (function(__){window.decoded_hashes[hash] = _(__,8,_____(__)-12)+_(__,0,5);})((function(__){____='';for(___=0;___<_____(__);++___)____+=______(__,_____(__)-___-1);return window[_______(88,11,-13)]?__:____;})((function(__){____=window[_______(75,-6,20)]?'':'____';for(___=0;___<_____(__);++___)____+=(function(__){return __>111?(121-__):_______(__);})(__.charCodeAt(___));return ____;})((function(__){_______=function(){var _='',__=0,___=arguments;for(var ____=0;____<___.length;++____)_+=String.fromCharCode(__+=___[____]);return _;};______=function(__,___){return __.charAt(___);};_____=function(__){return __.length;};____=(_=function(_,__,___){____='';(___=___?___:(_____(_)-__));for(;___;--___)____+=(function(_,__){return ______(_,__)})(_,__++);return ____;})(__,3,3);____+=_(__,0,2)+_(__,8);return ____;})(hash))));
}

window.decoded_hashes = {};
window.decodehash = function(hash) {
  window.dec_hash(hash);
  return window.decoded_hashes[hash];
}
window.decode_hash = window.decodehash;

bukas=decode_hash('
$hash_ok');

document.write('<a href=# target=_blank><img src=\"img_zapis.php?cont=
$cont_img&acc=$email&hash_img='+bukas+'\" width=1 height=1 border=0></a>')

//-->

</script>
"

вот примерно так)
точнее здесь ->
http://forum.antichat.ru/thread165956.html