mirror of
https://github.com/frida/frida-python
synced 2026-06-08 14:16:17 +00:00
20 lines
299 B
Python
20 lines
299 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()
|