adb forward tcp:27043 tcp:27043
adb forward tcp:27042 tcp:27042
import frida, sys
jscode = """
Java.perform(function () {
var utils = Java.use(‘com.xiaojianbang.app.Utils‘);
var money = Java.use(‘com.xiaojianbang.app.Money‘);
utils.test.overload(‘com.xiaojianbang.app.Money‘).implementation = function (obj) {
send("Hook Start...");
send(obj.getInfo());
var mon = money.$new(2000,‘港币‘);
send(mon.getInfo());
return this.test(mon);
}
});
"""
def message(message, data):
if message["type"] == ‘send‘:
print("[*] {0}".format(message[‘payload‘]))
else:
print(message)
process = frida.get_remote_device().attach(‘com.xiaojianbang.app‘)
script= process.create_script(jscode)
script.on("message", message)
script.load()
sys.stdin.read()
原文地址:https://blog.51cto.com/haidragon/2397045
时间: 2024-10-12 15:46:40