Files
frida-frida-python/examples/rpc.py
T
2022-09-12 20:59:52 +03:00

20 lines
294 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
print("api.hello() =>", api.hello())
api.fail_please()