善用命令行,快速验证你的想法。 -----箴言-----
使用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.appmsyhudiddemo]->
代码说明:

本文介绍了如何利用命令行工具 Frida 连接到正在运行的 Android 应用并进行调试。通过 `Process.isDebuggerAttached()` 检查调试状态,并演示了 `this.hasOwnProperty` 方法来检查对象属性。这展示了 Frida 在移动应用逆向工程中的实用性。
最低0.47元/天 解锁文章
1480

被折叠的 条评论
为什么被折叠?



