mirror of
https://github.com/luzhisheng/js_reverse.git
synced 2025-04-12 03:27:07 +08:00
调试websocket
This commit is contained in:
parent
e13acad175
commit
4a96831b17
BIN
img/39.png
Normal file
BIN
img/39.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 43 KiB |
BIN
img/40.png
Normal file
BIN
img/40.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 46 KiB |
BIN
img/41.png
Normal file
BIN
img/41.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
BIN
img/42.png
Normal file
BIN
img/42.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 36 KiB |
BIN
img/43.png
Normal file
BIN
img/43.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 101 KiB |
44
zy-websocket/案例站.md
Normal file
44
zy-websocket/案例站.md
Normal file
@ -0,0 +1,44 @@
|
||||
## 调试虎牙
|
||||
|
||||
发现找到 pending 正在连接中 WebSocket
|
||||
|
||||
并发送一条测试信息
|
||||
|
||||

|
||||
|
||||
进入js代码,发现new WebSocket
|
||||
|
||||

|
||||
|
||||
这里就要注意,无论js代码怎么混淆 new WebSocket 肯定会出现
|
||||
|
||||
s && !o.online && e.useHttps && (h += ":4434");
|
||||
var p = new WebSocket((e.useHttps ? "wss://" : "ws://") + h + _);
|
||||
p.ip = h,
|
||||
p.onopen = c,
|
||||
p.onclose = d,
|
||||
p.onerror = d
|
||||
|
||||
通过搜索发现很多 onmessage 和 send 方法
|
||||
|
||||
一个个打断点非常麻烦,直接hook
|
||||
|
||||
p.send_ = p.send;
|
||||
p.send = function(t){
|
||||
debugger;
|
||||
return p.send_(t);
|
||||
}
|
||||
|
||||

|
||||
|
||||
hook
|
||||
|
||||

|
||||
|
||||
发送弹暮测试,定位到加密函数
|
||||
|
||||

|
||||
|
||||
r中间存在我发送的代码内容,打上断点
|
||||
|
||||
d.writeStruct("tReq", r)
|
@ -26,7 +26,7 @@ websocket html5 不是v8引擎自带的,本身就是关键词
|
||||
|
||||
心跳包:客户端每隔30秒(不固定)发送给服务端信号,服务端就回认为客户端还是在线
|
||||
|
||||
## 调试 message
|
||||
## 调试 onmessage
|
||||
|
||||

|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user