我在写网页post,,那个post的数据用那个post就能成功,用别的账号去post去却不成功。。我分析了下。。是有post数据你有个随机的 以下是我截取的post
uname=safihwieufh&pass=123qwe&refer=%2Fme&mgj_secret=32ab83caa00c416&mgj_algo=o425l7oyD0s%3
上面两个加红后面的值就是用js生成。。。最后面的那个在网页源码里面能找到。。。就是mgj_secret 找不到 求高手帮忙。。
以下是他的js:
</div>
<input name="refer" value="/me" type="hidden"/>
<input name="mgj_secret" value="" id='mgj_secret' type="hidden"/>
<script type="text/javascript">var hexcase=0,b64pad="",chrsz=8;function secure_js(c){return binl2hex(core_abcc(str2binl(c),c.length*chrsz))}function core_abcc(c,g){c[g>>5]|=128<<g%32;c[(g+64>>>9<<4)+14]=g;for(var a=1732584193,b=-271733879,d=-1732584194,e=271733878,f=0;f<c.length;f+=16)var h=a,i=b,j=d,k=e,a=abcc_ff(a,b,d,e,c[f+0],3),e=abcc_ff(e,a,b,d,c[f+1],7),d=abcc_ff(d,e,a,b,c[f+2],11),b=abcc_ff(b,d,e,a,c[f+3],19),a=abcc_ff(a,b,d,e,c[f+4],3),e=abcc_ff(e,a,b,d,c[f+5],7),d=abcc_ff(d,e,a,b,c[f+6],11),b=abcc_ff(b,d,e,a,c[f+7],19),a=abcc_ff(a,b,d,e,c[f+8],3),e=abcc_ff(e,a,b,d,c[f+9],7),d=abcc_ff(d,e,a,b,c[f+10],11),b=abcc_ff(b,d,e,a,c[f+11],19),a=abcc_ff(a,b,d,e,c[f+12],3),e=abcc_ff(e,a,b,d,c[f+13],7),d=abcc_ff(d,e,a,b,c[f+14],11),b=abcc_ff(b,d,e,a,c[f+15],19),a=abcc_gg(a,b,d,e,c[f+0],3),e=abcc_gg(e,a,b,d,c[f+4],5),d=abcc_gg(d,e,a,b,c[f+8],9),b=abcc_gg(b,d,e,a,c[f+12],13),a=abcc_gg(a,b,d,e,c[f+1],3),e=abcc_gg(e,a,b,d,c[f+5],5),d=abcc_gg(d,e,a,b,c[f+9],9),b=abcc_gg(b,d,e,a,c[f+13],13),a=abcc_gg(a,b,d,e,c[f+2],3),e=abcc_gg(e,a,b,d,c[f+6],5),d=abcc_gg(d,e,a,b,c[f+10],9),b=abcc_gg(b,d,e,a,c[f+14],13),a=abcc_gg(a,b,d,e,c[f+3],3),e=abcc_gg(e,a,b,d,c[f+7],5),d=abcc_gg(d,e,a,b,c[f+11],9),b=abcc_gg(b,d,e,a,c[f+15],13),a=abcc_hh(a,b,d,e,c[f+0],3),e=abcc_hh(e,a,b,d,c[f+8],9),d=abcc_hh(d,e,a,b,c[f+4],11),b=abcc_hh(b,d,e,a,c[f+12],15),a=abcc_hh(a,b,d,e,c[f+2],3),e=abcc_hh(e,a,b,d,c[f+10],9),d=abcc_hh(d,e,a,b,c[f+6],11),b=abcc_hh(b,d,e,a,c[f+14],15),a=abcc_hh(a,b,d,e,c[f+1],3),e=abcc_hh(e,a,b,d,c[f+9],9),d=abcc_hh(d,e,a,b,c[f+5],11),b=abcc_hh(b,d,e,a,c[f+13],15),a=abcc_hh(a,b,d,e,c[f+3],3),e=abcc_hh(e,a,b,d,c[f+11],9),d=abcc_hh(d,e,a,b,c[f+7],11),b=abcc_hh(b,d,e,a,c[f+15],15),a=safe_add(a,h),b=safe_add(b,i),d=safe_add(d,j),e=safe_add(e,k);return[a,b,d,e]}function abcc_cmn(c,g,a,b,d,e){return safe_add(rol(safe_add(safe_add(g,c),safe_add(b,e)),d),a)}function abcc_ff(c,g,a,b,d,e){return abcc_cmn(g&a|~g&b,c,0,d,e,0)}function abcc_gg(c,g,a,b,d,e){return abcc_cmn(g&a|g&b|a&b,c,0,d,e,1518500249)}function abcc_hh(c,g,a,b,d,e){return abcc_cmn(g^a^b,c,0,d,e,1859775393)}function core_hmac_abcc(c,g){var a=str2binl(c);a.length>16&&(a=core_abcc(a,c.length*chrsz));for(var b=Array(16),d=Array(16),e=0;e<16;e++)b[e]=a[e]^909522486,d[e]=a[e]^1549556828;a=core_abcc(b.concat(str2binl(g)),512+g.length*chrsz);return core_abcc(d.concat(a),640)}function safe_add(c,g){var a=(c&65535)+(g&65535);return(c>>16)+(g>>16)+(a>>16)<<16|a&65535}function rol(c,g){return c<<g|c>>>32-g}function str2binl(c){for(var g=[],a=(1<<chrsz)-1,b=0;b<c.length*chrsz;b+=chrsz)g[b>>5]|=(c.charCodeAt(b/chrsz)&a)<<b%32;return g}function binl2str(c){for(var g="",a=(1<<chrsz)-1,b=0;b<c.length*32;b+=chrsz)g+=String.fromCharCode(c[b>>5]>>>b%32&a);return g}function binl2hex(c){for(var g=hexcase?"0123456789ABCDEF":"0123456789abcdef",a="",b=0;b<c.length*4;b++)a+=g.charAt(c[b>>2]>>b%4*8+4&15)+g.charAt(c[b>>2]>>b%4*8&15);return a.substr(5,15).split("").reverse().join("")}function binl2b64(c){for(var g="",a=0;a<c.length*4;a+=3)for(var b=(c[a>>2]>>8*(a%4)&255)<<16|(c[a+1>>2]>>8*((a+1)%4)&255)<<8|c[a+2>>2]>>8*((a+2)%4)&255,d=0;d<4;d++)g+=a*8+d*6>c.length*32?b64pad:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(b>>6*(3-d)&63);return g};</script>
<input type="hidden" id="jsalgo" name="mgj_algo" value="gY1bDNeIav4=" />
|