frida 和 objection

安装

设备:Google pixel 3a Android 12
python版本 :python 3.9
安装对应的frida ,frida-tools,和 objection
pip install --default-timeout=100000 frida16.2.1
pip install --default-timeout=100000 frida-tools
12.1.3
pip install --default-timeout=100000 objection==1.11.0

下载对应版本frida-server

https://github.com/frida/frida/releases?page=2
下载对应版本的frida-server ,这里下载的是 frida-server-16.2.1-android-arm64.xz
解压之后adb push 导入到手机运行。

objection

sb连接的设备

objection -g packageName explore

通过ip端口连接的设备

objection -N -h ip -p 端口 -g packageName explore

Hook Java方法

android hooking watch class_method com.xxx.xxx.methodName --dump-args --dump-backtrace --dump-return

Spawn方式Hook

objection -g packageName explore --startup-command “android hooking watch class_method com.xxx.xxx.methodName --dump-args --dump-backtrace --dump-return”

列出所有的类

android hooking list classes

搜索指定关键字的类

android hooking search classes display

搜索指定关键字的方法

android hooking search methods display

列出指定类的所有方法

android hooking list class_methods com.android.settings.DisplaySettings

设置返回值(只支持bool类型)

android hooking set return_value com.xxx.xxx.methodName false

关闭SSL校验

android sslpinning disable

Wallbreaker

插件安装

git clone https://github.com/hluwa/Wallbreaker ~/.objection/plugins/Wallbreaker

加载插件

plugin load ~/.objection/plugins/Wallbreaker

搜索类

plugin wallbreaker classsearch

搜索对象

plugin wallbreaker objectsearch
根据类名搜索内存中已经被创建的实例

ObjectDump

plugin wallbreaker objectdump [–fullname]
输出指定对象中的每个字段的数据

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Android逆向小菜鸡

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值