mirror of
https://github.com/frida/frida-python
synced 2026-06-08 14:16:17 +00:00
18 lines
293 B
Python
18 lines
293 B
Python
import frida
|
|
|
|
session = frida.attach("Twitter")
|
|
script = session.create_script("""\
|
|
rpc.exports = {
|
|
hello: function () {
|
|
return 'Hello';
|
|
},
|
|
failPlease: function () {
|
|
oops;
|
|
}
|
|
};
|
|
""")
|
|
script.load()
|
|
api = script.exports_sync
|
|
print("api.hello() =>", api.hello())
|
|
api.fail_please()
|