wanghongenpin / network_proxy_flutter

Open source free capture HTTP(S) traffic software ProxyPin, supporting full platform systems
Apache License 2.0
6.56k stars 552 forks source link

WebSocket解析异常 #316

Open Anekys opened 2 weeks ago

Anekys commented 2 weeks ago

描述错误(Describe the bug) 应该是一个通用的问题,Android,Windows均可复现. 具体表现为:同样的请求使用Charles可以正确展示内容,但是ProxyPin会显示乱码 跟着代码调了一下,发现是UTF8解码时抛了异常,转用AscII码形式的去解码. 目前还不确定是因为整体报文解析的问题还是单纯的解码的问题 To Reproduce 随便找一个使用WebSocket好像都可以. 例如vx小程序里的瑞幸咖啡. 刚打开时有一个wss的report.

*屏幕截图(Screenshots) ProxyPin image Charles image

Anekys commented 2 weeks ago

通过payload对比,应该是解析问题. 比较奇怪的是有的包解析的是正常的,有的包就有问题.

正常的包(体积较小) image image

异常的包 ProxyPin: image Charles: image

Anekys commented 2 weeks ago

image 解析异常位置