Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
hook.py
import frida
import sys
scriptname = sys.argv[1]
fd = open(scriptname, "r")
def on_message(message, data):
print(message)
print(data)
session = frida.get_usb_device().attach("com.supercell.clashroyale")
script = session.create_script(fd.read())
fd.close()
script.on('message', on_message)
script.load()
sys.stdin.read()
cr.js
/**
* Created by igio90 on 19/02/17.
*/
var f = Module.findBaseAddress("libg.so");
console.log("base addr: " + f);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.