Skip to content

Commit ebd797e

Browse files
authored
examples: Fix usage of deprecated RPC exports API (#236)
1 parent 3e489df commit ebd797e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/bytecode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
session = frida.attach("Twitter")
1616
script = session.create_script_from_bytes(bytecode)
1717
script.load()
18-
api = script.exports
18+
api = script.exports_sync
1919
print("api.list_threads() =>", api.list_threads())

examples/rpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
"""
1515
)
1616
script.load()
17-
api = script.exports
17+
api = script.exports_sync
1818
print("api.hello() =>", api.hello())
1919
api.fail_please()

0 commit comments

Comments
 (0)