Failed to spawn: unable to find process with name
- 报错:
Failed to spawn: unable to find process with name 'Preferences' - 原因:frida命令用的是
frida -U -l ./hookAccountLogin.js -n Preferences- 其中
-n是加二进制名称,此处Preferences是app,所以属于参数使用错误,调试目标语法搞错了
- 其中
- 解决办法:
- 搞懂frida的调试目标方式,改为别的方式即可
- 方式1:用
-N app_package_idfrida -U -l ./hookAccountLogin.js -N com.apple.Preferences - 方式2:换
-p PIDfrida -U -l ./hookAccountLogin.js -p 18031- 其中是用iPhone中ssh中通过ps查看到
~ ps -A | grep Preferences ... 18031 ?? 0:02.43 /Applications/Preferences.app/Preferences- 得知
Preferences的PID是18031
- 得知
- 其中是用iPhone中ssh中通过ps查看到
- 方式3:用
-Ffrida -U -l ./hookAccountLogin.js -F- 注:确保
Preferences=系统的设置app,处于最前台在运行才能用-F
- 注:确保
- 方式1:用
- 搞懂frida的调试目标方式,改为别的方式即可
