mirror of
https://github.com/frida/frida-python
synced 2026-06-08 14:16:17 +00:00
20 lines
414 B
Python
20 lines
414 B
Python
import frida
|
|
|
|
system_session = frida.attach(0)
|
|
bytecode = system_session.compile_script(
|
|
name="bytecode-example",
|
|
source="""\
|
|
rpc.exports = {
|
|
listThreads: function () {
|
|
return Process.enumerateThreadsSync();
|
|
}
|
|
};
|
|
""",
|
|
)
|
|
|
|
session = frida.attach("Twitter")
|
|
script = session.create_script_from_bytes(bytecode)
|
|
script.load()
|
|
api = script.exports_sync
|
|
print("api.list_threads() =>", api.list_threads())
|