网址:https://match.yuanrenxue.cn/match/12

接口:https://match.yuanrenxue.cn/api/match/12?page=1

解析流程

m参数加密

image-20230524181820816

追栈,t1是时间戳除2,t2是时间戳除2减随机数,q是加载wasm中的encode方法

image-20230524181903243

python 也是可以调用wasm的,我们先需要把这个文件下载下来

image-20230524182041673

然后用pywasm模块加载,在执行里面的方法,和执行js有点类似

1
2
vm = pywasm.load("./main.wasm")
result = vm.exec("encode", [t1, t2])

完整代码

1
2
3
4
5
6
timestamp = int(time.time()) * 1000
t1 = int(timestamp / 1000 / 2)
t2 = int(timestamp / 1000 / 2 - 2)
vm = pywasm.load("./main.wasm")
result = vm.exec("encode", [t1, t2])
return f'{result}|{t1}|{t2}'