我的配置信息如下圖所示
比如我想hook這款程序,我照著教程https://www.52pojie.cn/thread-1128884-1-1.html
pp@ubuntu:~$ frIDA-ps -Uai | tail -n 1
- 音乐 com.oppo.music
會出現以下報錯
pp@ubuntu:~$ python3 hook.py
Traceback (most recent call last):
File "hook.py", line 17, in <module>
process = frida.get_remote_device().attach('com.oppo.music') #得到设备并劫持进程com.example.testfrida(该开始用get_usb_device函数用来获取设备,但是一直报错找不到设备,改用get_remote_device函数即可解决这个问题)
File "/usr/local/lib/python3.8/dist-packages/frida/core.py", line 26, in wrapper
return f(*args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/frida/core.py", line 165, in attach
return Session(self._impl.attach(self._pid_of(target), *args, **kwargs))
File "/usr/local/lib/python3.8/dist-packages/frida/core.py", line 193, in _pid_of
return self.get_process(target).pid
File "/usr/local/lib/python3.8/dist-packages/frida/core.py", line 26, in wrapper
return f(*args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/frida/core.py", line 121, in get_process
raise _frida.ProcessNotFoundError("unable to find process with name '%s'" % process_name)
frida.ProcessNotFoundError: unable to find process with name 'com.oppo.music'
使用frida直接拉起程序也是一樣的報錯
pp@ubuntu:~$ frida -U com.oppo.music
____
/ _ | Frida 15.1.17 - A world-class dynamic instrumentation toolkit
| (_| |
> _ | Commands:
/_/ |_| help -> Displays the help system
. . . . object? -> Display information about 'object'
. . . . exit/quit -> Exit
. . . .
. . . . More info at https://frida.re/docs/home/
. . . .
. . . . Connected to OPPO R9s (id=5122a864)
Failed to spawn: unable to find process with name 'com.oppo.music'
有沒有大佬知道這是什麽問題,謝謝謝謝謝謝!!!!!!