调试websocket

This commit is contained in:
luzhisheng 2022-02-08 18:09:28 +08:00
parent 4a96831b17
commit 5bb96e053c
5 changed files with 77675 additions and 1 deletions

BIN
img/44.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
img/45.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

BIN
img/46.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 KiB

77653
zy-websocket/案例.js Normal file

File diff suppressed because one or more lines are too long

View File

@ -37,8 +37,29 @@ hook
发送弹暮测试,定位到加密函数
w && m.connected && w.send(t)
这里的 && 如果 w为true m.connected为truew.send(t)为true。执行w.send(t)
![debugger](../img/44.png)
这里可以看到t是发送的二进制的数据
![debugger](../img/43.png)
r 值序列化数据
a = JSON.stringify(r)
b = JSON.parse(a)
![debugger](../img/46.png)
r中间存在我发送的代码内容打上断点
d.writeStruct("tReq", r)
d.writeStruct("tReq", r)
这里能发现 d 存在方法做加密d是由 var d = new l.Wup; 得到的,那么现在需要搞定 l 值。
![debugger](../img/45.png)
l 值是 h.Taf 得到的, h 值是 t.taf 得到的那买t值t值是传入的