frida安装:pip3 install frida
$ frida-ps -Ua 显示USB终端正在运行的应用
ytMacBook-Pro:~ yt$ frida-ps -Ua
PID Name Identifier
----- ---- ------------------
26492 å°é©¬å‡ºè¡Œ com.HaoMa.xmcx
26494 逸路安 com.eela.passenger
- $ frida -U PID 附到应用进程之上
ytMacBook-Pro:~ yt$ frida -U 26494
____
/ _ | Frida 10.6.21 - A world-class dynamic instrumentation framework
| (_| |
> _ | Commands:
/_/ |_| help -> Displays the help system
. . . . object? -> Display information about 'object'
. . . . exit/quit -> Exit
. . . .
. . . . More info at http://www.frida.re/docs/home/
[iPhone::PID::26494]->
$ frida -U -l classes.js PID 运行脚本(查看应用所有的类)
$ frida -U -l classes.js PID | grep -i Jailbreak 查看应用是否包含越狱相关的类
使用frida运行脚本时,应用必须在前台运行,否则无法attach。