Files
frida-frida-python/examples/rpc.py
T
2019-05-10 21:27:47 +02:00

22 lines
352 B
Python

# -*- coding: utf-8 -*-
from __future__ import print_function
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()