unable to get processes in older Python versions
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Inizia in frida/core.py, in enumerate_processes(), get_process() e attach(), quindi confronta il loro comportamento con Python 3.6/3.7 rispetto alla configurazione funzionante con Python 3.8. Usa frida-ps -U e i nomi dei processi riportati per riprodurre la discrepanza; il lavoro è completato quando la ricerca del processo restituisce il processo previsto e attach non fallisce più per lo stesso target in esecuzione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
enumerate_processes() / attach / processed that end up calling get_process() fail to get all processes when using python3.6 / 3.7
File "/usr/local/lib/python3.6/dist-packages/frida-15.0.12-py3.6-linux-x86_64.egg/frida/core.py", line 26, in wrapper
return f(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/frida-15.0.12-py3.6-linux-x86_64.egg/frida/core.py", line 165, in attach
return Session(self._impl.attach(self._pid_of(target), *args, **kwargs))
File "/usr/local/lib/python3.6/dist-packages/frida-15.0.12-py3.6-linux-x86_64.egg/frida/core.py", line 193, in _pid_of
return self.get_process(target).pid
File "/usr/local/lib/python3.6/dist-packages/frida-15.0.12-py3.6-linux-x86_64.egg/frida/core.py", line 26, in wrapper
return f(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/frida-15.0.12-py3.6-linux-x86_64.egg/frida/core.py", line 121, in get_process
raise _frida.ProcessNotFoundError("unable to find process with name '%s'" % process_name)
When i switch to python 3.8.1 and run the same script, it works flawlessly
I ensured the process was actually running via frida-ps -U | grep <myproc> (uses my system default python of 3.8) and verifying with ps -ef via shell and its indeed running
What seems to be happening, is some apps are being returned to Frida's process list with their application name instead of package name for the same pid . example ( instead of com.z.foo , it shows as Foo)
Attempts to connect to Foo instead of com.z.foo fail with
frida.ServerNotRunningError: unable to connect to remote frida-server: Connection closed
- Lingua principale
- Python
- Stelle
- 873
- Fork
- 173
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di frida/frida-python
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
frida/frida-python#265 · 2 commenti ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
frida/frida-python#262 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
frida/frida-python#247 · 2 commenti · 2 reazioni ·
-
After a long period of hooking applications on Ubuntu, Python and JavaScript are unable to interact. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
frida/frida-python#246 ·
-
How can I connect to Ipv6? Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
frida/frida-python#243 ·
Tutte le issue di frida/frida-python
Issue simili
-
area: harness bug status: needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Human-Agent-Society/reef#625 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
learningequality/kolibri#15351 · 2 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Name consistency Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
eellak/triplestore#65 · 1 commento ·