善用命令行,快速验证你的想法。 -----箴言-----
使用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