From ebd797e4bc248b8d895d68ebf244a34744cb3ea9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AA=81=E7=AA=81=E5=85=94?= <37355028+tututu-patch@users.noreply.github.com> Date: Mon, 9 Oct 2023 19:14:27 +0800 Subject: [PATCH] examples: Fix usage of deprecated RPC exports API (#236) --- examples/bytecode.py | 2 +- examples/rpc.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/bytecode.py b/examples/bytecode.py index d7abdfa..a2d8942 100644 --- a/examples/bytecode.py +++ b/examples/bytecode.py @@ -15,5 +15,5 @@ rpc.exports = { session = frida.attach("Twitter") script = session.create_script_from_bytes(bytecode) script.load() -api = script.exports +api = script.exports_sync print("api.list_threads() =>", api.list_threads()) diff --git a/examples/rpc.py b/examples/rpc.py index 5684a3b..83c6c69 100644 --- a/examples/rpc.py +++ b/examples/rpc.py @@ -14,6 +14,6 @@ rpc.exports = { """ ) script.load() -api = script.exports +api = script.exports_sync print("api.hello() =>", api.hello()) api.fail_please()