Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

After a long period of hooking applications on Ubuntu, Python and JavaScript are unable to interact.

オープン
#246 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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 はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

frida/frida-python のほかの issue

frida/frida-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。