reqable / reqable-app

Reqable issue track repo
https://reqable.com
2.52k stars 85 forks source link

[bug] 在Socks5代理下,无法查看使用IP地址通信的HTTPS报文内容 #719

Closed yinsel closed 1 week ago

yinsel commented 1 week ago

Describe the bug 如下图所示,分别使用本地HTTPS网站以及真实互联网下的HTTPS网站进行测试,使用的是Proxifier强制浏览器走socks5代理:

To Reproduce 步骤如图所示。

Expected behavior 正常流量HTTPS报文

Screenshots PixPin_2024-06-15_18-25-49

Information

MegatronKing commented 1 week ago

@yinsel 你本地怎么还有https,自己签的127.0.0.1证书?另外,不需要用Proxifier强制浏览器走socks5代理,Reqable可以直接配置走sock5代理:https://reqable.com/zh-CN/docs/capture/proxy#%E4%BB%A3%E7%90%86%E5%8D%8F%E8%AE%AE

yinsel commented 1 week ago

@yinsel 你本地怎么还有https,自己签的127.0.0.1证书?另外,不需要用Proxifier强制浏览器走socks5代理,Reqable可以直接配置走sock5代理:https://reqable.com/zh-CN/docs/capture/proxy#%E4%BB%A3%E7%90%86%E5%8D%8F%E8%AE%AE

本地是自签证书,PC浏览器上这种问题感觉不重要,主要是这种情况我在手机上抓取HTTPS数据包遇到的,使用Android版本的Proxifier设置VPN走socks5,IP通信的HTTPS站点不能查看流量

yinsel commented 1 week ago

@yinsel 你本地怎么还有https,自己签的127.0.0.1证书?另外,不需要用Proxifier强制浏览器走socks5代理,Reqable可以直接配置走sock5代理:https://reqable.com/zh-CN/docs/capture/proxy#%E4%BB%A3%E7%90%86%E5%8D%8F%E8%AE%AE

我在Android平台测试了一下,使用代理模式,在同一局域网下,PC端使用Proxifier让浏览器走手机的reqable代理(socks5代理),未发现该问题,可能只有PC端对于socks5代理下的纯IP地址的HTTPS流量解析存在一定问题。

MegatronKing commented 1 week ago

不是很理解你这个操作,但是socks5理论上不会有问题的。

yinsel commented 1 week ago

不是很理解你这个操作,但是socks5理论上不会有问题的。

出于需求,必须使用socks5代理,而reqable正好支持socks5,能够捕获到非HTTP流量的IP地址,如下图所示,其中18开头的IP我以为是非HTTP流量,结果它是,因此就提出了这个问题,并且尝试在PC端测试

socks5抓取结果: image

reqable VPN 协同设备抓取结果: image

总的来说产品在流量分析方面很棒,我也是在使用的过程中发现问题并提出,虽然该问题比较小众

MegatronKing commented 1 week ago

所以vpn没问题,但是socks5转发有问题吗?PC端设置里面打开调试日志,再复现下问题,点击底部栏5下打开日志控制台,把日志复制出来我看看。操作完成后,把调试日志再关掉(影响性能)。

yinsel commented 1 week ago

所以vpn没问题,但是socks5转发有问题吗?PC端设置里面打开调试日志,再复现下问题,点击底部栏5下打开日志控制台,把日志复制出来我看看。操作完成后,把调试日志再关掉(影响性能)。

请问控制台如何打开呢,底部我没有看到

MegatronKing commented 1 week ago

鼠标点击Reqable底部栏5下,会弹出一个日志窗口

yinsel commented 1 week ago

鼠标点击Reqable底部栏5下,会弹出一个日志窗口

06-16 12:28:52.5960 [E][Netbare]: [27] "Read from server": End of file
06-16 12:28:52.5962 [I][Netbare]: [27] TCP proxy session closed!
06-16 12:28:53.0209 [I][Netbare]: [26] [SSL] Start HTTP2 stream #173
06-16 12:28:53.0213 [V][Netbare]: [26] [#173] https://zh.sdnea.shop:1689
06-16 12:28:53.1229 [V][Netbare]: [26] [#173] h2 200
06-16 12:28:53.1337 [I][Netbare]: [26] [SSL] Start HTTP2 stream #175
06-16 12:28:53.1340 [V][Netbare]: [26] [#175] https://zh.sdnea.shop:1689/css/app.e786f904.css
06-16 12:28:53.1396 [I][Netbare]: [26] [SSL] Start HTTP2 stream #177
06-16 12:28:53.1399 [V][Netbare]: [26] [#177] https://zh.sdnea.shop:1689/config/myConfig.js
06-16 12:28:53.1407 [I][Netbare]: [26] [SSL] Start HTTP2 stream #179
06-16 12:28:53.1410 [V][Netbare]: [26] [#179] https://zh.sdnea.shop:1689/js/app.14e11d71.js
06-16 12:28:53.1427 [I][Netbare]: [26] [SSL] Start HTTP2 stream #181
06-16 12:28:53.1429 [V][Netbare]: [26] [#181] https://zh.sdnea.shop:1689/js/chunk-vendors.0530cee5.js
06-16 12:28:53.3368 [V][Netbare]: [26] [#175] h2 200
06-16 12:28:53.4436 [V][Netbare]: [26] [#177] h2 200
06-16 12:28:53.4443 [V][Netbare]: [26] [#179] h2 200
06-16 12:28:53.5187 [I][Netbare]: [26] [SSL] Start HTTP2 stream #183
06-16 12:28:53.5190 [V][Netbare]: [26] [#183] https://zh.sdnea.shop:1689/css/chunk-04262f23.9cc2d83c.css
06-16 12:28:53.5518 [V][Netbare]: [26] [#181] h2 200
06-16 12:28:53.5708 [I][Netbare]: [26] [SSL] Start HTTP2 stream #185
06-16 12:28:53.5711 [V][Netbare]: [26] [#185] https://zh.sdnea.shop:1689/css/chunk-04da58b2.b3570bff.css
06-16 12:28:53.5723 [I][Netbare]: [26] [SSL] Start HTTP2 stream #187
06-16 12:28:53.5740 [V][Netbare]: [26] [#187] https://zh.sdnea.shop:1689/css/chunk-050d6b70.a0dbb419.css
06-16 12:28:53.5807 [I][Netbare]: [26] [SSL] Start HTTP2 stream #189
06-16 12:28:53.5810 [V][Netbare]: [26] [#189] https://zh.sdnea.shop:1689/css/chunk-0564a307.ea3e635a.css
06-16 12:28:53.5813 [I][Netbare]: [26] [SSL] Start HTTP2 stream #191
06-16 12:28:53.5816 [V][Netbare]: [26] [#191] https://zh.sdnea.shop:1689/css/chunk-0fc63a9b.7186f87d.css
06-16 12:28:53.8601 [V][Netbare]: [26] [#183] h2 200
06-16 12:28:53.9625 [V][Netbare]: [26] [#185] h2 200
06-16 12:28:53.9627 [V][Netbare]: [26] [#187] h2 200
06-16 12:28:53.9630 [V][Netbare]: [26] [#189] h2 200
06-16 12:28:53.9631 [V][Netbare]: [26] [#191] h2 200
06-16 12:28:54.0061 [I][Netbare]: [26] [SSL] Start HTTP2 stream #193
06-16 12:28:54.0063 [V][Netbare]: [26] [#193] https://zh.sdnea.shop:1689/css/chunk-1c15ccee.76eaac78.css
06-16 12:28:54.2035 [I][Netbare]: [26] [SSL] Start HTTP2 stream #195
06-16 12:28:54.2038 [V][Netbare]: [26] [#195] https://zh.sdnea.shop:1689/css/chunk-1f2bc30a.91a38a4a.css
06-16 12:28:54.2043 [I][Netbare]: [26] [SSL] Start HTTP2 stream #197
06-16 12:28:54.2045 [V][Netbare]: [26] [#197] https://zh.sdnea.shop:1689/css/chunk-210b0f26.a7dfb493.css
06-16 12:28:54.2048 [I][Netbare]: [26] [SSL] Start HTTP2 stream #199
06-16 12:28:54.2050 [V][Netbare]: [26] [#199] https://zh.sdnea.shop:1689/css/chunk-22bd68b5.0e28bd14.css
06-16 12:28:54.2515 [I][Netbare]: [26] [SSL] Start HTTP2 stream #201
06-16 12:28:54.2518 [V][Netbare]: [26] [#201] https://zh.sdnea.shop:1689/css/chunk-23bcc8aa.42eb8dbe.css
06-16 12:28:54.2747 [V][Netbare]: [26] [#193] h2 200
06-16 12:28:54.2960 [I][Netbare]: [26] [SSL] Start HTTP2 stream #203
06-16 12:28:54.2962 [V][Netbare]: [26] [#203] https://zh.sdnea.shop:1689/css/chunk-260c16b4.02039089.css
06-16 12:28:54.2965 [I][Netbare]: [26] [SSL] Start HTTP2 stream #205
06-16 12:28:54.2968 [V][Netbare]: [26] [#205] https://zh.sdnea.shop:1689/css/chunk-2b87957c.14eb0549.css
06-16 12:28:54.3039 [V][Netbare]: [26] [#195] h2 200
06-16 12:28:54.3054 [V][Netbare]: [26] [#197] h2 200
06-16 12:28:54.3059 [V][Netbare]: [26] [#199] h2 200
06-16 12:28:54.3158 [I][Netbare]: [26] [SSL] Start HTTP2 stream #207
06-16 12:28:54.3160 [V][Netbare]: [26] [#207] https://zh.sdnea.shop:1689/css/chunk-2dba9b74.83896f26.css
06-16 12:28:54.3346 [I][Netbare]: [41] TCP proxy session created!
06-16 12:28:54.3347 [I][Netbare]: [41] TCP proxy session started!
06-16 12:28:54.3348 [I][Netbare]: [41] Perform socks5 handshake.
06-16 12:28:54.3379 [V][Netbare]: [41] Connecting to 18.142.73.202:443
06-16 12:28:54.3520 [V][Netbare]: [26] [#201] h2 200
06-16 12:28:54.3560 [I][Netbare]: [26] [SSL] Start HTTP2 stream #209
06-16 12:28:54.3562 [V][Netbare]: [26] [#209] https://zh.sdnea.shop:1689/css/chunk-2f75c8e2.b9782725.css
06-16 12:28:54.3566 [I][Netbare]: [26] [SSL] Start HTTP2 stream #211
06-16 12:28:54.3568 [V][Netbare]: [26] [#211] https://zh.sdnea.shop:1689/css/chunk-364be0a3.98296054.css
06-16 12:28:54.3571 [I][Netbare]: [26] [SSL] Start HTTP2 stream #213
06-16 12:28:54.3574 [V][Netbare]: [26] [#213] https://zh.sdnea.shop:1689/css/chunk-4e426dee.3e67e754.css
06-16 12:28:54.3577 [I][Netbare]: [26] [SSL] Start HTTP2 stream #215
06-16 12:28:54.3579 [V][Netbare]: [26] [#215] https://zh.sdnea.shop:1689/css/chunk-778e6e3d.61f93910.css
06-16 12:28:54.3963 [V][Netbare]: [26] [#203] h2 200
06-16 12:28:54.3969 [V][Netbare]: [26] [#205] h2 200
06-16 12:28:54.4161 [V][Netbare]: [26] [#207] h2 200
06-16 12:28:54.4554 [V][Netbare]: [41] Connected 18.142.73.202:443
06-16 12:28:54.4589 [V][Netbare]: [26] [#209] h2 200
06-16 12:28:54.4595 [V][Netbare]: [26] [#211] h2 200
06-16 12:28:54.4601 [V][Netbare]: [26] [#213] h2 200
06-16 12:28:54.4606 [V][Netbare]: [26] [#215] h2 200
06-16 12:28:54.4689 [W][Netbare]: [41] SSL hit bypass for 
06-16 12:28:54.4955 [I][Netbare]: [26] [SSL] Start HTTP2 stream #217
06-16 12:28:54.4960 [V][Netbare]: [26] [#217] https://zh.sdnea.shop:1689/js/chunk-4e426dee.53e45926.js
06-16 12:28:54.4964 [I][Netbare]: [26] [SSL] Start HTTP2 stream #219
06-16 12:28:54.4966 [V][Netbare]: [26] [#219] https://zh.sdnea.shop:1689/js/chunk-778e6e3d.7dc2fd51.js
06-16 12:28:54.4970 [I][Netbare]: [26] [SSL] Start HTTP2 stream #221
06-16 12:28:54.4972 [V][Netbare]: [26] [#221] https://zh.sdnea.shop:1689/css/chunk-41a0b310.2ee8987e.css
06-16 12:28:54.5519 [I][Netbare]: [26] [SSL] Start HTTP2 stream #223
06-16 12:28:54.5522 [V][Netbare]: [26] [#223] https://zh.sdnea.shop:1689/css/chunk-43675039.7bf48505.css
06-16 12:28:54.5534 [I][Netbare]: [26] [SSL] Start HTTP2 stream #225
06-16 12:28:54.5538 [V][Netbare]: [26] [#225] https://zh.sdnea.shop:1689/css/chunk-5015dd96.dfd02e10.css
yinsel commented 1 week ago

鼠标点击Reqable底部栏5下,会弹出一个日志窗口

这是搭建的本地HTTPS并使用socks5代理的调试日志,更加简洁:

image

MegatronKing commented 1 week ago

@yinsel 我大概知道问题了,你方便的话微信加下我(官网首页右下角扫码),给你个出个版本再测试下。

yinsel commented 1 week ago

@yinsel 我大概知道问题了,你方便的话微信加下我(官网首页右下角扫码),给你个出个版本再测试下。

好的👌

MegatronKing commented 1 week ago

v2.18.1已修复。