frida hook邻居合伙人登录算法

通过抓到找到他的登陆请求。
frida hook邻居合伙人登录算法
frida hook邻居合伙人登录算法
frida hook邻居合伙人登录算法

import frida, sys

jscode = """

Java.perform(function () {

    var md5 = Java.use('com.softgarden.baselibrary.utils.MD5Util');
    md5.ToMD5.implementation = function (a, b) {
        send("Hook Start...");
        send(a);
        send(b);
        var res = this.ToMD5(a, b);
        send(res);
        send("Success!");
        return res;
    }

});
"""

def message(message, data):
    if message["type"] == 'send':
        print("[*] {0}".format(message['payload']))
    else:
        print(message)

process = frida.get_remote_device().attach('com.ljhhr.mobile')
script= process.create_script(jscode)
script.on("message", message)
script.load()
sys.stdin.read()

猜你喜欢

转载自blog.51cto.com/haidragon/2397585