After a long period of hooking applications on Ubuntu, Python and JavaScript are unable to interact.
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- javascript, python, ubuntu, unity
調査の方向性
まず、提供されたメインエントリポイント、Python メッセージハンドラ、および JavaScript の handleGetCount 関数を使い、Ubuntu 上の Python 3.10.12 と Frida 16.4.7 で長時間実行されるケースを再現します。失敗がスクリプトメッセージ、recv 呼び出し、またはその両方に影響するかを確認します。再現可能な原因を特定し、サイレントな失敗なしに通信を復旧できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Long-term hooking in Ubuntu causes the Python script to be unable to print logs from Frida and receive remote calls from Frida.
The scenario involves hooking into an IL2CPP Unity game on Ubuntu, but after running for a while, the aforementioned problem occurs. Python continues to run, and Frida is also hooking into the application normally, but there is no interaction between the two.
main
if __name__ == '__main__':
manager = frida.get_device_manager()
device = manager.get_local_device()
pid = device.spawn(['my-application'])
process = device.attach(pid)
script = process.create_script(test_js)
script.on('message', on_message)
t1 = Thread(target=reportMatch)
t1.start()
print('[*] Running')
script.load()
device.resume(pid)
sys.stdin.read()
python handle send function
if message['type'] == 'send':
data = "{0}".format(message['payload'])
if message['payload']["type"] == "sendCount":
playersCount = message['payload']['count']
print(playersCount)
js handle handleGetCount function
recv("getPlayersCount", handleGetCount);
function handleGetCount() {
recv("getPlayersCount", handleGetCount);
//some function to get count
send(new countData(count + "/" + maxCount));
}
There is continuous interaction between them; Python calls a method in JavaScript every 5 seconds to retrieve some content, so there is no long period of inactivity. However, the situation mentioned above still occurs where it seems like Python and Frida have lost connection, yet they are both running normally without any exceptions. It is hoped that this issue can be resolved.
python version:3.10.12
frida version:16.4.7
The hook is for a local application, not a remote call, so theoretically, there should be no network-related reasons.
I'm looking forward to resolving this issue. If necessary, you can provide your email address to me, and I can provide more information. This issue is really troubling me~
- 主要言語
- 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 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
frida/frida-python#243 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 42/100
frida/frida-python#242 · コメント 1 件 ·
frida/frida-python の issue をすべて見る
似ている issue
-
area: harness bug status: needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Human-Agent-Society/reef#625 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
learningequality/kolibri#15351 · コメント 2 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
Name consistency オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
eellak/triplestore#65 · コメント 1 件 ·