第10题

抓包,加密点为url后面的t参数

image-20260112112821038

从堆栈上打上断点,单步执行

image-20260112112938198

image-20260112113200017

找到加密点

image-20260112113807788

实际需要找的加密函数是OOOO,直接扣代码

过程中间你会发现有不一致的地方,

image-20260112125408671

image-20260112125424351

查看代码的调用关系,最后实际是调用的是a0_0xc300固定值

image-20260112125710688

只能是进行了偏移,补上开头的自执行函数

image-20260112125953446

补到最后发现sha256没定义

image-20260112132201597

此处直接用crypto模块实现了,当然也能扣代码实现

1
2
3
4
5
const crypto = require('crypto');

function sha256(input) {
return crypto.createHash('sha256').update(input).digest('hex');
}

执行完结果与浏览器一致

image-20260112160817015

所有的代码函数

image-20260112160943531

若是不想扣那么多的代码,可以分成两部分,sha256加密不扣,直接扣上半部分

image-20260112162623498

image-20260112163942159

也就是xooo函数就行代码量少很多

image-20260112164142430

当然你想扣sha256的话也是可以的

image-20260113001200404

将此函数扣出来,同时改写

1
2
3
var _0x35a996 = new _0x2f5ec1(false, true);
_0x35a996.update(_0x5a1594);
return _0x35a996.hex();

image-20260113001343000

代码如上

更多内容也在公众号更新:码字的秃猴

tuhou