Android Hook-Frida框架-注入以及Process的用法

本文介绍了如何利用命令行工具 Frida 连接到正在运行的 Android 应用并进行调试。通过 `Process.isDebuggerAttached()` 检查调试状态,并演示了 `this.hasOwnProperty` 方法来检查对象属性。这展示了 Frida 在移动应用逆向工程中的实用性。
摘要由CSDN通过智能技术生成

善用命令行,快速验证你的想法。 -----箴言-----

 

使用CLI工具连接并注入到app中,app必须是已经在运行的app。

1. 连接并注入到app中:

frida -U -n com.example.appmsyhudiddemo

2. Process实战函数:

isDebuggerAttached

hasOwnProperty

[Android Emulator 5554::com.example.appmsyhudiddemo]-> Process

{

    "arch": "ia32",

    "codeSigningPolicy": "optional",

    "id": 1418,

    "pageSize": 4096,

    "platform": "linux",

    "pointerSize": 4

}

[Android Emulator 5554::com.example.appmsyhudiddemo]-> Process.isDebuggerAttached()

false

[Android Emulator 5554::com.example.appmsyhudiddemo]-> this.hasOwnProperty('Frida')

true

[Android Emulator 5554::com.example.appmsyhudiddemo]-> this.hasOwnProperty('Fridax')

false

[Android Emulator 5554::com.example.appms
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

liranke

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

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

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

打赏作者

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

抵扣说明:

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

余额充值