-
部分公开的服务:
- 国家授时中心中国科学院:
ntp.ntsc.ac.cn - 阿里云公共NTP服务:
ntp.aliyun.com - 苹果:
time.asia.apple.com - 百度:
ntp1.baidu.com - 腾讯:
http://time1.cloud.tencent.com - 清华大学:
ntp.tuna.tsinghua.edu.cn - 等其他服务器
- 国家授时中心中国科学院:
-
修改命令:
adb shell settings put global ntp_server 上边的服务器选一个,或者是其他的NTP服务器
-
查询命令:
adb shell settings get global ntp_server
-
修改示例:
adb shell settings put global ntp_server ntp.ntsc.ac.cn
-
删除默认测试服务器
adb shell settings delete global captive_portal_https_url adb shell settings delete global captive_portal_http_url
-
设置测试服务器
-
测试服务器地址:
- 小米:
https://connect.rom.miui.com/generate_204 - 小米:
http://connect.rom.miui.com/generate_204 - 华为:
http://connectivitycheck.platform.hicloud.com/generate_204 - vivo:
http://wifi.vivo.com.cn/generate_204 - 高通:
http://www.qualcomm.cn/generate_204 - Cloudflare:
http://cp.cloudflare.com/generate_204
- 小米:
-
修改示例:
adb shell settings put global captive_portal_https_url https://connect.rom.miui.com/generate_204 adb shell settings put global captive_portal_http_url http://connect.rom.miui.com/generate_204
-
-
查询配置
adb shell settings get global captive_portal_https_url
adb shell settings get global captive_portal_http_url- 仓库:https://github.com/topjohnwu/Magisk
- 下载地址:https://github.com/topjohnwu/Magisk/releases/latest
- 文档:https://topjohnwu.github.io/Magisk/
这个模块和
!> 该模块已经不推荐安装,该模块被Magisk的内置Zygisk模块替代,需要注意的是,Zygisk 模块需要主动开启;
- 仓库:https://github.com/RikkaApps/Riru
- 文档:https://github.com/RikkaApps/Riru?tab=readme-ov-file#guide
- 下载地址:https://github.com/RikkaApps/Riru/releases/latest
Lsposed 是 EdXposed 框架的一个分支,EdXposed在 2021年的时候停止了维护;
!> 很可惜开发者受到恶意攻击,已经与2024年1月放弃该软件的维护了;
!> 推荐使用Zygisk版本
- 仓库地址:https://github.com/LSPosed/LSPosed
- 安装文档:https://github.com/LSPosed/LSPosed?tab=readme-ov-file#install
- 下载地址:https://github.com/LSPosed/LSPosed/releases/latest
LSPosed_mod 是 Lsposed 框架的一个分支,主要是Android 14及其后续版本的支持;
!> 推荐使用Zygisk版本
- 仓库地址:https://github.com/LSPosed/LSPosed
- 安装文档:https://github.com/LSPosed/LSPosed?tab=readme-ov-file#install
- 下载地址:https://github.com/LSPosed/LSPosed/releases/latest
- 仓库:https://github.com/tiann/KernelSU
- 下载地址:https://github.com/tiann/KernelSU/releases/latest
- 文档:https://kernelsu.org/zh_CN/guide/what-is-kernelsu.html
- 仓库地址:https://github.com/RikkaApps/Shizuku
- 说明文档:https://shizuku.rikka.app/zh-hans/
- 下载地址:https://github.com/RikkaApps/Shizuku/releases/latest
- Sui
- https://github.com/RikkaApps/Sui
- https://github.com/RikkaApps/Sui/releases/latest
- Charles:https://www.charlesproxy.com/download/
- Fiddler:https://www.telerik.com/download/fiddler
- Mitmproxy:https://mitmproxy.org/
- Wireshark:https://www.wireshark.org/download.html
- 等其他软件
该方法需要使用
Charles使用、Fiddler等其他MITM软件配合使用;Magisk、LSPosed安装相关模块实现SSL相关函数的Hook;
- 安装Magisk;
1.
安装,该模块被Riru模块Magisk的内置Zygisk模块替代,需要注意的是,Zygisk模块需要主动开启;
2. 安装`LSPosed`模块,**请注意要下载的是`Zygisk`版本**,*很可惜开发者受到恶意攻击,已经放弃该软件的维护了*;
- 仓库地址:https://github.com/LSPosed/LSPosed
- 安装文档:https://github.com/LSPosed/LSPosed?tab=readme-ov-file#install
- 下载地址:https://github.com/LSPosed/LSPosed/releases/latest
- 安装
Lsposed-manager应用;- 下载地址:https://github.com/LSPosed/LSPosed/releases/latest
- 下载文件后解压,请注意要下载的是
Zygisk版本,在压缩文件中找到manager.apk并安装;
- 安装
TrustMeAlready,该软件已归档; - 在
Lsposed软件中切换到模块,选择TrustMeAlready模块并开启该模块,然后选择需要抓包的软件;
- warning:使用SSL Pinning并开启混淆、等其他技术的应用,该方法可能不能成功
JustTrustMe是类似于TrustMeAlready的软件,由于JustTrustMe很久没有更新了,才出现的TrustMeAlready,两者本质上是没有区别的,都是通过Hook相关函数实现的;
该方法主要解决安卓7.0之后
MITM软件CA证书无法被信任的问题
- 安装Magisk;
- 安装
TrustUserCertificates模块; - 安装
MITM软件的CA证书; - 重启设备;
- 尝试抓包;
- warning:使用SSL Pinning并开启混淆、等其他技术的应用,该方法无法抓取
TrustUserCertificates该模块理论上支持Android 8.0 ~ 14,但是只测试了14;MagiskTrustUserCerts该模块适用于Android 7.0至Android 13Adguardcert该模块仅适用于AdGuard软件,其实现脚本具备参考价值
利用VPN转发截取,该方式未测试,看一下原理比较合适
- NetWorkPacketCapture:https://github.com/huolizhuminh/NetWorkPacketCapture
- AndroidHttpCapture:https://github.com/JZ-Darkal/AndroidHttpCapture
- NetBare-Android:
- 这是一个框架并非应用
- 仓库地址(建议Fork):https://github.com/MegatronKing/NetBare-Android
- Charles:https://www.charlesproxy.com/download/
- Fiddler:https://www.telerik.com/download/fiddler
- Mitmproxy:https://mitmproxy.org/
- 等其他软件
利用VPN/代理转发截取
- Stream:https://apps.apple.com/cn/app/stream/id1312141691?l=zh
- HTTP Catcher:https://apps.apple.com/cn/app/http-catcher/id1445874902?l=zh