100RMB求高手将js代码转成au3代码,会的人应该不难!!!!!!
<html><head>
<title> Example</title>
<script>
var hexcase = 1;
var b64pad = "";
var chrsz = 8;
var mode = 32;
passw("\x00\x00\x00\x00\x4c\x4f\xf5\xed","3558342727m","!JZJ")
function passw(uin,p,vcode){
var K = md5(p)
//alert(K)
var H = hexchar2bin(K);
//alert(H)
var F = md5(H + uin);
//alert(F)
var C = md5(F + vcode.toUpperCase());
alert(C)
}
function hexchar2bin(str) {
//C365DA59EA2D393F5BE5058CE6AEDB4F
//str="C365"
var arr = [];
var j=0
for (var i = 0; i < str.length; i = i + 2) {
arr.push("\\x" + str.substr(i, 2))
//alert(j + "= " + arr);
j+=1
}
arr = arr.join("");
eval("var temp = '" + arr + "'");
//alert(temp)
return temp
}
//hexchar2bin("3558342727m")
function md5(A) {
return hex_md5(A)
}
function hex_md5(A) {
return binl2hex(core_md5(str2binl(A), A.length * chrsz))
}
function str_md5(A) {
return binl2str(core_md5(str2binl(A), A.length * chrsz))
}
function core_md5(K, F) {
K |= 128 << ((F) % 32);
K[(((F + 64) >>> 9) << 4) + 14] = F;
var J = 1732584193;
var I = -271733879;
var H = -1732584194;
var G = 271733878;
for (var C = 0; C < K.length; C += 16) {
var E = J;
var D = I;
var B = H;
var A = G;
J = md5_ff(J, I, H, G, K, 7, -680876936);
G = md5_ff(G, J, I, H, K, 12, -389564586);
H = md5_ff(H, G, J, I, K, 17, 606105819);
I = md5_ff(I, H, G, J, K, 22, -1044525330);
J = md5_ff(J, I, H, G, K, 7, -176418897);
G = md5_ff(G, J, I, H, K, 12, 1200080426);
H = md5_ff(H, G, J, I, K, 17, -1473231341);
I = md5_ff(I, H, G, J, K, 22, -45705983);
J = md5_ff(J, I, H, G, K, 7, 1770035416);
G = md5_ff(G, J, I, H, K, 12, -1958414417);
H = md5_ff(H, G, J, I, K, 17, -42063);
I = md5_ff(I, H, G, J, K, 22, -1990404162);
J = md5_ff(J, I, H, G, K, 7, 1804603682);
G = md5_ff(G, J, I, H, K, 12, -40341101);
H = md5_ff(H, G, J, I, K, 17, -1502002290);
I = md5_ff(I, H, G, J, K, 22, 1236535329);
J = md5_gg(J, I, H, G, K, 5, -165796510);
G = md5_gg(G, J, I, H, K, 9, -1069501632);
H = md5_gg(H, G, J, I, K, 14, 643717713);
I = md5_gg(I, H, G, J, K, 20, -373897302);
J = md5_gg(J, I, H, G, K, 5, -701558691);
G = md5_gg(G, J, I, H, K, 9, 38016083);
H = md5_gg(H, G, J, I, K, 14, -660478335);
I = md5_gg(I, H, G, J, K, 20, -405537848);
J = md5_gg(J, I, H, G, K, 5, 568446438);
G = md5_gg(G, J, I, H, K, 9, -1019803690);
H = md5_gg(H, G, J, I, K, 14, -187363961);
I = md5_gg(I, H, G, J, K, 20, 1163531501);
J = md5_gg(J, I, H, G, K, 5, -1444681467);
G = md5_gg(G, J, I, H, K, 9, -51403784);
H = md5_gg(H, G, J, I, K, 14, 1735328473);
I = md5_gg(I, H, G, J, K, 20, -1926607734);
J = md5_hh(J, I, H, G, K, 4, -378558);
G = md5_hh(G, J, I, H, K, 11, -2022574463);
H = md5_hh(H, G, J, I, K, 16, 1839030562);
I = md5_hh(I, H, G, J, K, 23, -35309556);
J = md5_hh(J, I, H, G, K, 4, -1530992060);
G = md5_hh(G, J, I, H, K, 11, 1272893353);
H = md5_hh(H, G, J, I, K, 16, -155497632);
I = md5_hh(I, H, G, J, K, 23, -1094730640);
J = md5_hh(J, I, H, G, K, 4, 681279174);
G = md5_hh(G, J, I, H, K, 11, -358537222);
H = md5_hh(H, G, J, I, K, 16, -722521979);
I = md5_hh(I, H, G, J, K, 23, 76029189);
J = md5_hh(J, I, H, G, K, 4, -640364487);
G = md5_hh(G, J, I, H, K, 11, -421815835);
H = md5_hh(H, G, J, I, K, 16, 530742520);
I = md5_hh(I, H, G, J, K, 23, -995338651);
J = md5_ii(J, I, H, G, K, 6, -198630844);
G = md5_ii(G, J, I, H, K, 10, 1126891415);
H = md5_ii(H, G, J, I, K, 15, -1416354905);
I = md5_ii(I, H, G, J, K, 21, -57434055);
J = md5_ii(J, I, H, G, K, 6, 1700485571);
G = md5_ii(G, J, I, H, K, 10, -1894986606);
H = md5_ii(H, G, J, I, K, 15, -1051523);
I = md5_ii(I, H, G, J, K, 21, -2054922799);
J = md5_ii(J, I, H, G, K, 6, 1873313359);
G = md5_ii(G, J, I, H, K, 10, -30611744);
H = md5_ii(H, G, J, I, K, 15, -1560198380);
I = md5_ii(I, H, G, J, K, 21, 1309151649);
J = md5_ii(J, I, H, G, K, 6, -145523070);
G = md5_ii(G, J, I, H, K, 10, -1120210379);
H = md5_ii(H, G, J, I, K, 15, 718787259);
I = md5_ii(I, H, G, J, K, 21, -343485551);
J = safe_add(J, E);
I = safe_add(I, D);
H = safe_add(H, B);
G = safe_add(G, A)
}
if (mode == 16) {
return Array(I, H)
} else {
return Array(J, I, H, G)
}
}
function md5_cmn(F, C, B, A, E, D) {
return safe_add(bit_rol(safe_add(safe_add(C, F), safe_add(A, D)), E), B)
}
function md5_ff(C, B, G, F, A, E, D) {
return md5_cmn((B & G) | ((~B) & F), C, B, A, E, D)
}
function md5_gg(C, B, G, F, A, E, D) {
return md5_cmn((B & F) | (G & (~F)), C, B, A, E, D)
}
function md5_hh(C, B, G, F, A, E, D) {
return md5_cmn(B ^ G ^ F, C, B, A, E, D)
}
function md5_ii(C, B, G, F, A, E, D) {
return md5_cmn(G ^ (B | (~F)), C, B, A, E, D)
}
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))
}
function str2binl(D) {
var C = Array();
var A = (1 << chrsz) - 1;
for (var B = 0; B < D.length * chrsz; B += chrsz) {
C |= (D.charCodeAt(B / chrsz) & A) << (B % 32)
}
return C
}
function binl2str(C) {
var D = "";
var A = (1 << chrsz) - 1;
for (var B = 0; B < C.length * 32; B += chrsz) {
D += String.fromCharCode((C >>> (B % 32)) & A)
}
return D
}
function binl2hex(C) {
var B = hexcase ? "0123456789ABCDEF": "0123456789abcdef";
var D = "";
for (var A = 0; A < C.length * 4; A++) {
D += B.charAt((C >> ((A % 4) * 8 + 4)) & 15) + B.charAt((C >> ((A % 4) * 8)) & 15)
}
return D
}
function uin2hex(str) {
var maxLength = 16;
str = parseInt(str);
var hex = str.toString(16);
var len = hex.length;
for (var i = len; i < maxLength; i++) {
hex = "0" + hex
}
var arr = [];
for (var j = 0; j < maxLength; j += 2) {
arr.push("\\x" + hex.substr(j, 2))
}
var result = arr.join("");
eval('result="' + result + '"');
return result
}
</script>
</head>
<body>
</body>
</html>要得到最后alert出来的值 ,会的人加我 858188917啊,急用,100rmb 呵呵,LZ的JS似曾相识,像 QQpost 密码加密方法 回复 2# 80ren
是的,就是那个!!!! 回复 3# yorker0503
QQ登录 POST 发送邮件 等等 部分源码,需要的 加我 121970609 回复 1# yorker0503
直接调用js就可以了,有兴趣的话共同研究QQpost登录
看看这个http://www.autoitx.com/thread-32792-1-1.html 能改成au3的吗,不用调用,调用的话,要多出很多代码呢,au3有个md5的函数,可以省下很多代码 继续求 au3源代码,不要调用js的 我自己写好了{:face (280):}
页:
[1]