Skip to content

MakeForce/notes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

搞机

安卓类原生优化

修改NTP时间服务器

  • 部分公开的服务:

    • 国家授时中心中国科学院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

网络可用性测试服务

  1. 删除默认测试服务器

    adb shell settings delete global captive_portal_https_url
    adb shell settings delete global captive_portal_http_url
  2. 设置测试服务器

    • 测试服务器地址:

      • 小米: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
  3. 查询配置

adb shell settings get global captive_portal_https_url
adb shell settings get global captive_portal_http_url

安卓Root

Magisk

模块

Riru

这个模块和

!> 该模块已经不推荐安装,该模块被Magisk的内置Zygisk模块替代,需要注意的是,Zygisk 模块需要主动开启;

Lsposed

Lsposed 是 EdXposed 框架的一个分支,EdXposed在 2021年的时候停止了维护;

!> 很可惜开发者受到恶意攻击,已经与2024年1月放弃该软件的维护了;

!> 推荐使用Zygisk版本

LSPosed_mod

LSPosed_mod 是 Lsposed 框架的一个分支,主要是Android 14及其后续版本的支持;

!> 推荐使用Zygisk版本

KernelSU

Shizuku

抓包

桌面软件

安卓抓包

方式一

该方法需要使用Charles使用Fiddler等其他MITM软件配合使用;MagiskLSPosed 安装相关模块实现SSL相关函数的Hook;

步骤
  1. 安装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
  1. 安装Lsposed-manager应用;
  2. 安装TrustMeAlready该软件已归档
  3. Lsposed软件中切换到模块,选择TrustMeAlready模块并开启该模块,然后选择需要抓包的软件;
备注

方式二

该方法主要解决安卓7.0之后MITM软件CA证书无法被信任的问题

步骤
  1. 安装Magisk; - 安装TrustUserCertificates模块;
  2. 安装MITM软件的CA证书;
  3. 重启设备;
  4. 尝试抓包;
备注

方式三

利用VPN转发截取,该方式未测试,看一下原理比较合适

安卓软件

iOS

传统软件

移动APP抓包

利用VPN/代理转发截取

跨平台

相关资料

other

Frida

VirtualApp

逆向

太极

httptoolkit

Epic

genuine

lamda

Releases

Packages

Contributors