刚刚学了一个反Debugger,恰好找了个简单网站做来练习,
网站:
JS加密内容:
function t(e, t) { var i = (65535 & e) + (65535 & t); return (e >> 16) + (t >> 16) + (i >> 16) << 16 | 65535 & i } function i(e, i, n, o, a, r) { return t((s = t(t(i, e), t(o, r))) << (l = a) | s >>> 32 - l, n); var s, l } function n(e, t, n, o, a, r, s) { return i(t & n | ~t & o, e, t, a, r, s) } function o(e, t, n, o, a, r, s) { return i(t & o | n & ~o, e, t, a, r, s) } function a(e, t, n, o, a, r, s) { return i(t ^ n ^ o, e, t, a, r, s) } function r(e, t, n, o, a, r, s) { return i(n ^ (t | ~o), e, t, a, r, s) } function s(e, i) { e[i >> 5] |= 128 << i % 32, e[14 + (i + 64 >>> 9 << 4)] = i; var s, l, d, c, p, u = 1732584193, f = -271733879, h = -1732584194, g = 271733878; for (s = 0; s < e.length; s += 16) l = u, d = f, c = h, p = g, u = n(u, f, h, g, e[s], 7, -680876936), g = n(g, u, f, h, e[s + 1], 12, -389564586), h = n(h, g, u, f, e[s + 2], 17, 606105819), f = n(f, h, g, u, e[s + 3], 22, -1044525330), u = n(u, f, h, g, e[s + 4], 7, -176418897), g = n(g, u, f, h, e[s + 5], 12, 1200080426), h = n(h, g, u, f, e[s + 6], 17, -1473231341), f = n(f, h, g, u, e[s + 7], 22, -45705983), u = n(u, f, h, g, e[s + 8], 7, 1770035416), g = n(g, u, f, h, e[s + 9], 12, -1958414417), h = n(h, g, u, f, e[s + 10], 17, -42063), f = n(f, h, g, u, e[s + 11], 22, -1990404162), u = n(u, f, h, g, e[s + 12], 7, 1804603682), g = n(g, u, f, h, e[s + 13], 12, -40341101), h = n(h, g, u, f, e[s + 14], 17, -1502002290), u = o(u, f = n(f, h, g, u, e[s + 15], 22, 1236535329), h, g, e[s + 1], 5, -165796510), g = o(g, u, f, h, e[s + 6], 9, -1069501632), h = o(h, g, u, f, e[s + 11], 14, 643717713), f = o(f, h, g, u, e[s], 20, -373897302), u = o(u, f, h, g, e[s + 5], 5, -701558691), g = o(g, u, f, h, e[s + 10], 9, 38016083), h = o(h, g, u, f, e[s + 15], 14, -660478335), f = o(f, h, g, u, e[s + 4], 20, -405537848), u = o(u, f, h, g, e[s + 9], 5, 568446438), g = o(g, u, f, h, e[s + 14], 9, -1019803690), h = o(h, g, u, f, e[s + 3], 14, -187363961), f = o(f, h, g, u, e[s + 8], 20, 1163531501), u = o(u, f, h, g, e[s + 13], 5, -1444681467), g = o(g, u, f, h, e[s + 2], 9, -51403784), h = o(h, g, u, f, e[s + 7], 14, 1735328473), u = a(u, f = o(f, h, g, u, e[s + 12], 20, -1926607734), h, g, e[s + 5], 4, -378558), g = a(g, u, f, h, e[s + 8], 11, -2022574463), h = a(h, g, u, f, e[s + 11], 16, 1839030562), f = a(f, h, g, u, e[s + 14], 23, -35309556), u = a(u, f, h, g, e[s + 1], 4, -1530992060), g = a(g, u, f, h, e[s + 4], 11, 1272893353), h = a(h, g, u, f, e[s + 7], 16, -155497632), f = a(f, h, g, u, e[s + 10], 23, -1094730640), u = a(u, f, h, g, e[s + 13], 4, 681279174), g = a(g, u, f, h, e[s], 11, -358537222), h = a(h, g, u, f, e[s + 3], 16, -722521979), f = a(f, h, g, u, e[s + 6], 23, 76029189), u = a(u, f, h, g, e[s + 9], 4, -640364487), g = a(g, u, f, h, e[s + 12], 11, -421815835), h = a(h, g, u, f, e[s + 15], 16, 530742520), u = r(u, f = a(f, h, g, u, e[s + 2], 23, -995338651), h, g, e[s], 6, -198630844), g = r(g, u, f, h, e[s + 7], 10, 1126891415), h = r(h, g, u, f, e[s + 14], 15, -1416354905), f = r(f, h, g, u, e[s + 5], 21, -57434055), u = r(u, f, h, g, e[s + 12], 6, 1700485571), g = r(g, u, f, h, e[s + 3], 10, -1894986606), h = r(h, g, u, f, e[s + 10], 15, -1051523), f = r(f, h, g, u, e[s + 1], 21, -2054922799), u = r(u, f, h, g, e[s + 8], 6, 1873313359), g = r(g, u, f, h, e[s + 15], 10, -30611744), h = r(h, g, u, f, e[s + 6], 15, -1560198380), f = r(f, h, g, u, e[s + 13], 21, 1309151649), u = r(u, f, h, g, e[s + 4], 6, -145523070), g = r(g, u, f, h, e[s + 11], 10, -1120210379), h = r(h, g, u, f, e[s + 2], 15, 718787259), f = r(f, h, g, u, e[s + 9], 21, -343485551), u = t(u, l), f = t(f, d), h = t(h, c), g = t(g, p); return [u, f, h, g] } function l(e) { var t, i = ""; for (t = 0; t < 32 * e.length; t += 8) i += String.fromCharCode(e[t >> 5] >>> t % 32 & 255); return i } function d(e) { var t, i = []; for (i[(e.length >> 2) - 1] = void 0, t = 0; t < i.length; t += 1) i[t] = 0; for (t = 0; t < 8 * e.length; t += 8) i[t >> 5] |= (255 & e.charCodeAt(t / 8)) << t % 32; return i } function c(e) { var t, i, n = ""; for (i = 0; i < e.length; i += 1) t = e.charCodeAt(i), n += "0123456789abcdef".charAt(t >>> 4 & 15) + "0123456789abcdef".charAt(15 & t); return n } function p(e) { return unescape(encodeURIComponent(e)) } function u(e) { return function(e) { return l(s(d(e), 8 * e.length)) }(p(e)) } function f(e, t) { return function(e, t) { var i, n, o = d(e), a = [], r = []; for (a[15] = r[15] = void 0, o.length > 16 && (o = s(o, 8 * e.length)), i = 0; i < 16; i += 1) a[i] = 909522486 ^ o[i], r[i] = 1549556828 ^ o[i]; return n = s(a.concat(d(t)), 512 + 8 * t.length), l(s(r.concat(n), 640)) }(p(e), p(t)) } md5 = function(e, t, i) { return t ? i ? f(t, e) : c(f(t, e)) : i ? u(e) : c(u(e)) }
看视频教学吧,这个 如果写文章打字放图片的话,可能有点累,,,
评论抢沙发