查看载荷
查看预览数据
查看启动器,看到Promise对象,联想到axios拦截器,因此搜索 interceptors
全局搜索 interceptors
断点调试
控制台输出
查看 decrypt 解密函数 这很明显就是个AES解密
js 代码:
const cryptoJs = require('crypto-js')
url = "/api/rank/author/fans/increment"
text = "加密数据"
const decrypt = function (url, text) {
if ("string" != typeof url)
return;
const str = function(str) {
const encode2 = encodeURI(str);
return btoa(encode2)
}(url).repeat(3)
, orgKey = str.slice(0, 16)
, orgIv = str.slice(12, 28)
, ikey = cryptoJs.enc.Utf8.parse(orgKey)
, iiv = cryptoJs.enc.Utf8.parse(orgIv);
return cryptoJs.AES.decrypt(text, ikey, {
iv: iiv,
mode: cryptoJs.mode.CBC,
padding: cryptoJs.pad.Pkcs7
}).toString(cryptoJs.enc.Utf8)
};
console.log(decrypt(url,text))
结果:
只能看前两条数据,哈哈哈哈,因为不是会员