2023-03-07 01:12:46 +08:00

64 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 知识点: 补环境,事件断点,轻度混淆
## 解题思路
打开控制台,请求发现返回一串js代码
![请求](./img/1.png)
再观察控制台请求顺序
![请求](./img/2.png)
查看2个请求地址有何区别多了个`iloveu`
![请求](./img/3.png)
这时需要用到,事件脚本断点
![请求](./img/4.png)
断点下一步下一步下一步直到h1停下来继续打上断点
![请求](./img/5.png)
在点进入下一个断点
![请求](./img/6.png)
这时候就进入了h2函数里面
![请求](./img/7.png)
可以看到代码
var _0x6a8ax2f = __Oxbb794[0x8] + escape(hex_2(hex_1(sct)));
尝试控制台打印函数结果值
![请求](./img/8.png)
到这里基本上就搞定了`iloveu`值的来源,接下来的事情就是扣代码补环境了
以下就是`h1.js`需要补的环境
navigator = {
'userAgent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.0.0 Safari/537.36',
'plugins': {
'length': 5
}
};
window = global;
document = {
'execCommand': function () {
return true
},
'createElement': function () {
return true
}
};
`h2.js`的话,直接运行就可以了,没有设置多余门槛。