“unable to inject library into process without libc” when attach to child process that origin=exec
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- android, python
- 領域
- devtools, mobile-dev
調査の方向性
examples/child_gating.py から始め、origin が fork から exec に変わる Android の child-added シーケンスを再現します。frida/core.py と、報告されている frida_tools/application.py の呼び出し箇所を通る attach パスを追跡し、成功する fork attach と失敗する exec attach を比較します。報告された exec ケースが解決されるか、サポートされていない動作であることが明確に確立され、適切な回帰チェックでカバーされれば完了です。
索引モデルが issue の本文から書いたものです。
説明
this is my environment:
genymotion: 3.2.1 + Samsung Galaxy S7 6.0-API 23,also test on Google Nexus 5X 8.0-API 26
frida-server: frida-server-15.1.17-android-x86,also tested frida-server-15.1.14-android-x86 and frida-server-15.0.0-android-x86
script: https://github.com/frida/frida-python/blob/master/examples/child_gating.py
I only changed the argv to myappid
def _start(self):
argv = [myappid]
and I got these outputs:
✔ spawn(argv=['myappid'])
✔ attach(pid=4486)
✔ enable_child_gating()
✔ create_script()
✔ resume(pid=4486)
⚡ child_added: Child(pid=4602, parent_pid=4486, origin=fork)
✔ attach(pid=4602)
✔ enable_child_gating()
✔ create_script()
✔ resume(pid=4602)
⚡ child_removed: Child(pid=4602, parent_pid=4486, origin=fork)
⚡ child_added: Child(pid=4602, parent_pid=4602, origin=exec, ......)
✔ attach(pid=4602)
Exception in thread Thread-1:
Traceback (most recent call last):
File "/home/nothing/miniconda3/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/home/nothing/miniconda3/lib/python3.7/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/home/nothing/miniconda3/lib/python3.7/site-packages/frida_tools/application.py", line 765, in _run
work()
File "lavpn.usa_spawn_gating.py", line 20, in
self._device.on("child-added", lambda child: self._reactor.schedule(lambda: self._on_child_added(child)))
File "lavpn.usa_spawn_gating.py", line 61, in _on_child_added
self._instrument(child.pid, child)
File "lavpn.usa_spawn_gating.py", line 45, in _instrument
session = self._device.attach(pid)
File "/home/nothing/miniconda3/lib/python3.7/site-packages/frida/core.py", line 26, in wrapper
return f(*args, **kwargs)
File "/home/nothing/miniconda3/lib/python3.7/site-packages/frida/core.py", line 165, in attach
return Session(self._impl.attach(self._pid_of(target), *args, **kwargs))
frida.NotSupportedError: unable to inject library into process without libc
We can see that when attach the child process which origin is fork,it's ok.
but when attach the same process which origin changed to exec,the error occurs.
I searched and find https://github.com/frida/frida/issues/936,but no lucky.
I think maybe because I used genymotion emulator, but why first attach is ok?
- 主要言語
- Python
- スター
- 873
- フォーク
- 173
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
frida/frida-python のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
frida/frida-python#265 · コメント 2 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
frida/frida-python#262 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
frida/frida-python#247 · コメント 2 件 · リアクション 2 件 ·
-
After a long period of hooking applications on Ubuntu, Python and JavaScript are unable to interact. オープン
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
frida/frida-python#246 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
frida/frida-python#243 ·
frida/frida-python の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
stephrobert/dsoxlab#238 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
sublimehq/package_control#1780 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
nwg-piotr/nwg-displays#145 ·