frida-ps AttributeError: '_frida
2022-07-06 本文已影响0人
Coder_Messi
frida好久没用了,今天用frida-ps追踪函数调用的时候报了个错:
frida-ps -U
PID Name
---- ---------------------------------------------------
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
self.run()
File "/usr/lib/python3.9/threading.py", line 892, in run
self._target(*self._args, **self._kwargs)
File "/home/angelofskies/.local/lib/python3.9/site-packages/frida_tools/application.py", line 639, in _run
work()
File "/home/angelofskies/.local/lib/python3.9/site-packages/frida_tools/application.py", line 334, in _try_start
self._start()
File "/home/angelofskies/.local/lib/python3.9/site-packages/frida_tools/ps.py", line 34, in _start
self._list_processes()
File "/home/angelofskies/.local/lib/python3.9/site-packages/frida_tools/ps.py", line 52, in _list_processes
for process in sorted(processes, key=cmp_to_key(compare_processes)):
File "/home/angelofskies/.local/lib/python3.9/site-packages/frida_tools/ps.py", line 147, in __lt__
return mycmp(self.obj, other.obj) < 0
File "/home/angelofskies/.local/lib/python3.9/site-packages/frida_tools/ps.py", line 126, in compare_processes
a_has_icon = a.get_small_icon() is not None
AttributeError: '_frida.Process' object has no attribute 'get_small_icon'
很奇怪,之前还好好的。猜测可能是mac跟手机上的frida版本不一致导致的。
然后看了下frida版本,都是最新的15.1.27,一样啊,这就更奇怪了。
没办法,上终极武器---搜索神功。然后在这里看到了这样的回答:
更新过程出了点问题。好吧,我就科学上网后重新升级了下:
pip3 install --upgrade frida-tools
搞定。
总结
搜索df好!