Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安卓抓包问题 #379

Open
907598940 opened this issue Nov 22, 2024 · 2 comments
Open

安卓抓包问题 #379

907598940 opened this issue Nov 22, 2024 · 2 comments
Labels
question Further information is requested

Comments

@907598940
Copy link

907598940 commented Nov 22, 2024

我在抓包某东的时候。发现无法直接抓取到某些请求。
必须在 启动代理服务器 -> 启动VPN -> 启动APP -> 重启VPN
这个流程下才能抓取到对应的数据。
能发现的就是okhttp/3.12.16。
我怀疑是不是这个问题导致的。
举例:
2024-11-22 03:31:03.824871: 响应: HttpRequest{version: HTTP/1.1, uri: /client.action?functionId=search&clientVersion=13.2.0&build=99580&client=android&partner=71738773&sdkVersion=28&lang=zh_CN&harmonyOs=0&......
Connection: [keep-alive], User-Agent: [okhttp/3.12.16;jdmall;android;version/13.2.0;build/99580;], X-Referer-Package: [com.jingdong.app.mall], Charset: [UTF-8], X-Referer-Page: [com.jd.lib.search.view.Activity.ProductListActivity], X-HttpDns-Route: [[2408:8706:0:6801::21]], Accept-Encoding: [br,gzip,deflate], X-PP-AEW: [64], Cache-Control: [no-cache], Content-Type: [application/x-www-form-urlencoded; charset=UTF-8], Content-Length: [1981], Host: [api.m.jd.com]}}, contentLength: 1981, bodyLength: 1981}

@907598940 907598940 added the bug Something isn't working label Nov 22, 2024
@wanghongenpin
Copy link
Owner

理论来说不需要重启VPN, 和抓包软件应该没什么关系

@wanghongenpin wanghongenpin added question Further information is requested and removed bug Something isn't working labels Nov 28, 2024
@907598940
Copy link
Author

我测试过了。取消ConnectionManager.kt文件的101-103行注释就可以在不重启vpn的情况下,抓到某东的seacrh。但是取消这一段注释,会导致抓包软件变卡。

// if (DEFAULT_PORTS.contains(port)) {
// socketAddress = proxyAddress
// }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants