目标网 aHR0cHM6Ly9qenNjLm1vaHVyZC5nb3YuY24vZGF0YS9jb21wYW55
(function () {
var my_stringify = JSON.stringify;
JSON.stringify = function (params) {
console.log("HOOK stringify", params);
debugger
return my_stringify(params)
};
var my_parse = JSON.parse;
JSON.parse = function (params) {
console.log("HOOK parse", params);
debugger
return my_parse(params);
}
})();
在控制台输入Hook代码
var CryptoJS = require('crypto-js')
data='eee' #网站预览中的加密内容,这里就不复制过来了实在太长了
function h(t) {
f = CryptoJS.enc.Utf8.parse("jo8j9wGw%6HbxfFn")
m = CryptoJS.enc.Utf8.parse("0123456789ABCDEF");
var key = e = CryptoJS.enc.Hex.parse(t)
n = CryptoJS.enc.Base64.stringify(e)
var decrypt = CryptoJS.AES.decrypt(n, f, {
iv: m,
mode: CryptoJS.mode.CBC,
padding: CryptoJS.pad.Pkcs7
});
return decrypt.toString(CryptoJS.enc.Utf8);
}
consoloe.log(h(data))