|
登录的是迅雷的云点播 地址:http://vod.xunlei.com/home.html
登陆时发现有加密 JS查看 找到这样一段加密步骤
var aa = N($("#" + M.p).val());
aa = N(aa);
aa = N(aa + $("#" + M.verifycode).val().toUpperCase());
Z.p = encodeURIComponent(aa);
让后查找N这个函数在哪里,找到这一堆加密代码:
function N(Y) {
return A(z(C(Y), Y.length * H)) } function b(Y) { return i(z(C(Y), Y.length * H)) } function j(Y) { return t(z(C(Y), Y.length * H)) } function c(Y, Z) { return A(X(Y, Z)) }
function n(Y, Z) {
return i(X(Y, Z)) } function v(Y, Z) { return t(X(Y, Z)) }
function e() { return N("abc") == "900150983cd24fb0d6963f7d28e17f72" } function z(ai, ad) { ai[ad >> 5] |= 128 << ((ad) % 32); ai[(((ad + 64) >>> 9) << 4) + 14] = ad; var ah = 1732584193; var ag = -271733879; var af = -1732584194; var ae = 271733878; for (var aa = 0; aa < ai.length; aa += 16) { var ac = ah; var ab = ag; var Z = af; var Y = ae; ah = s(ah, ag, af, ae, ai[aa + 0], 7, -680876936); ae = s(ae, ah, ag, af, ai[aa + 1], 12, -389564586); af = s(af, ae, ah, ag, ai[aa + 2], 17, 606105819); ag = s(ag, af, ae, ah, ai[aa + 3], 22, -1044525330); ah = s(ah, ag, af, ae, ai[aa + 4], 7, -176418897); ae = s(ae, ah, ag, af, ai[aa + 5], 12, 1200080426); af = s(af, ae, ah, ag, ai[aa + 6], 17, -1473231341); ag = s(ag, af, ae, ah, ai[aa + 7], 22, -45705983); ah = s(ah, ag, af, ae, ai[aa + 8], 7, 1770035416); ae = s(ae, ah, ag, af, ai[aa + 9], 12, -1958414417); af = s(af, ae, ah, ag, ai[aa + 10], 17, -42063); ag = s(ag, af, ae, ah, ai[aa + 11], 22, -1990404162); ah = s(ah, ag, af, ae, ai[aa + 12], 7, 1804603682); ae = s(ae, ah, ag, af, ai[aa + 13], 12, -40341101); af = s(af, ae, ah, ag, ai[aa + 14], 17, -1502002290); ag = s(ag, af, ae, ah, ai[aa + 15], 22, 1236535329); ah = T(ah, ag, af, ae, ai[aa + 1], 5, -165796510); ae = T(ae, ah, ag, af, ai[aa + 6], 9, -1069501632); af = T(af, ae, ah, ag, ai[aa + 11], 14, 643717713); ag = T(ag, af, ae, ah, ai[aa + 0], 20, -373897302); ah = T(ah, ag, af, ae, ai[aa + 5], 5, -701558691); ae = T(ae, ah, ag, af, ai[aa + 10], 9, 38016083); af = T(af, ae, ah, ag, ai[aa + 15], 14, -660478335); ag = T(ag, af, ae, ah, ai[aa + 4], 20, -405537848); ah = T(ah, ag, af, ae, ai[aa + 9], 5, 568446438); ae = T(ae, ah, ag, af, ai[aa + 14], 9, -1019803690); af = T(af, ae, ah, ag, ai[aa + 3], 14, -187363961); ag = T(ag, af, ae, ah, ai[aa + 8], 20, 1163531501); ah = T(ah, ag, af, ae, ai[aa + 13], 5, -1444681467); ae = T(ae, ah, ag, af, ai[aa + 2], 9, -51403784); af = T(af, ae, ah, ag, ai[aa + 7], 14, 1735328473); ag = T(ag, af, ae, ah, ai[aa + 12], 20, -1926607734); ah = J(ah, ag, af, ae, ai[aa + 5], 4, -378558); ae = J(ae, ah, ag, af, ai[aa + 8], 11, -2022574463); af = J(af, ae, ah, ag, ai[aa + 11], 16, 1839030562);
ag = J(ag, af, ae, ah, ai[aa + 14], 23, -35309556); ah = J(ah, ag, af, ae, ai[aa + 1], 4, -1530992060); ae = J(ae, ah, ag, af, ai[aa + 4], 11, 1272893353); af = J(af, ae, ah, ag, ai[aa + 7], 16, -155497632); ag = J(ag, af, ae, ah, ai[aa + 10], 23, -1094730640); ah = J(ah, ag, af, ae, ai[aa + 13], 4, 681279174); ae = J(ae, ah, ag, af, ai[aa + 0], 11, -358537222); af = J(af, ae, ah, ag, ai[aa + 3], 16, -722521979); ag = J(ag, af, ae, ah, ai[aa + 6], 23, 76029189); ah = J(ah, ag, af, ae, ai[aa + 9], 4, -640364487); ae = J(ae, ah, ag, af, ai[aa + 12], 11, -421815835); af = J(af, ae, ah, ag, ai[aa + 15], 16, 530742520); ag = J(ag, af, ae, ah, ai[aa + 2], 23, -995338651); ah = r(ah, ag, af, ae, ai[aa + 0], 6, -198630844); ae = r(ae, ah, ag, af, ai[aa + 7], 10, 1126891415); af = r(af, ae, ah, ag, ai[aa + 14], 15, -1416354905); ag = r(ag, af, ae, ah, ai[aa + 5], 21, -57434055); ah = r(ah, ag, af, ae, ai[aa + 12], 6, 1700485571); ae = r(ae, ah, ag, af, ai[aa + 3], 10, -1894986606); af = r(af, ae, ah, ag, ai[aa + 10], 15, -1051523); ag = r(ag, af, ae, ah, ai[aa + 1], 21, -2054922799); ah = r(ah, ag, af, ae, ai[aa + 8], 6, 1873313359); ae = r(ae, ah, ag, af, ai[aa + 15], 10, -30611744); af = r(af, ae, ah, ag, ai[aa + 6], 15, -1560198380); ag = r(ag, af, ae, ah, ai[aa + 13], 21, 1309151649); ah = r(ah, ag, af, ae, ai[aa + 4], 6, -145523070); ae = r(ae, ah, ag, af, ai[aa + 11], 10, -1120210379); af = r(af, ae, ah, ag, ai[aa + 2], 15, 718787259); ag = r(ag, af, ae, ah, ai[aa + 9], 21, -343485551); ah = u(ah, ac); ag = u(ag, ab); af = u(af, Z); ae = u(ae, Y) } return Array(ah, ag, af, ae) } function l(ad, aa, Z, Y, ac, ab) { return u(d(u(u(aa, ad), u(Y, ab)), ac), Z) } function s(aa, Z, ae, ad, Y, ac, ab) { return l((Z & ae) | ((~Z) & ad), aa, Z, Y, ac, ab) } function T(aa, Z, ae, ad, Y, ac, ab) { return l((Z & ad) | (ae & (~ad)), aa, Z, Y, ac, ab) } function J(aa, Z, ae, ad, Y, ac, ab) { return l(Z ^ ae ^ ad, aa, Z, Y, ac, ab) } function r(aa, Z, ae, ad, Y, ac, ab) { return l(ae ^ (Z | (~ad)), aa, Z, Y, ac, ab)
}
function X(aa, ad) {
var ac = C(aa);
if (ac.length > 16) {
ac = z(ac, aa.length * H)
}
var Y = Array(16), ab = Array(16);
for (var Z = 0; Z < 16; Z++) {
Y[Z] = ac[Z] ^ 909522486;
ab[Z] = ac[Z] ^ 1549556828
}
var ae = z(Y.concat(C(ad)), 512 + ad.length * H);
return z(ab.concat(ae), 512 + 128)
}
function u(Y, ab) {
var aa = (Y & 65535) + (ab & 65535);
var Z = (Y >> 16) + (ab >> 16) + (aa >> 16);
return (Z << 16) | (aa & 65535)
}
function d(Y, Z) {
return (Y << Z) | (Y >>> (32 - Z))
}
function C(ab) {
var aa = Array();
var Y = (1 << H) - 1;
for (var Z = 0; Z < ab.length * H; Z += H) {
aa[Z >> 5] |= (ab.charCodeAt(Z / H) & Y) << (Z % 32)
}
return aa
}
function t(aa) {
var ab = "";
var Y = (1 << H) - 1;
for (var Z = 0; Z < aa.length * 32; Z += H) {
ab += String.fromCharCode((aa[Z >> 5] >>> (Z % 32)) & Y)
}
return ab
}
function A(aa) {
var Z = x ? "0123456789ABCDEF" : "0123456789abcdef";
var ab = "";
for (var Y = 0; Y < aa.length * 4; Y++) {
ab += Z.charAt((aa[Y >> 2] >> ((Y % 4) * 8 + 4)) & 15) + Z.charAt((aa[Y >> 2] >> ((Y % 4) * 8)) & 15)
}
return ab
}
function i(ab) {
var aa = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n
var ad = "";
for (var Z = 0; Z < ab.length * 4; Z += 3) {
var ac = (((ab[Z >> 2] >> 8 * (Z % 4)) & 255) << 16) | (((ab[Z + 1 >> 2] >> 8 * ((Z + 1) % 4)) & 255) << 8) | ((ab[Z + 2 >> 2] >> 8 * ((Z + 2) % 4)) & 255);
for (var Y = 0; Y < 4; Y++) {
if (Z * 8 + Y * 6 > ab.length * 32) {
ad += D
} else {
ad += aa.charAt((ac >> 6 * (3 - Y)) & 63)
}
}
}
return ad
}
然后我把他复制到常量里 用脚本组件执行加密步骤 也就是:N(N(N(password))+code)=密码. 却返回了空文本,这是为什么呐。 虚心求指教{:soso__8961432591078930798_3:} |
求助知识:请将问题描述清楚,最好把你有问题的源码打包上传上来,这样更方便大家帮助你。 友情提醒:本版被采纳的主题可在 申请荣誉值 帖子申请荣誉值,获得 3点 荣誉值,荣誉值可兑换荣誉会员、终身vip用户组。
|