frida.transporterror: timeout wa

2023-09-14  本文已影响0人  S_jie

执行代码如下:

import frida
import sys

rdev = frida.get_remote_device()

session = rdev.attach("name")

scr = """
Java.perform(function () {
    var AHAPIHelper = Java.use("com.autohome.ahkit.AHAPIHelper");
    AHAPIHelper.getDesKey.implementation = function(ctx){
        console.log("-----------------------getDesKey-----------------------");
        var res = this.getDesKey(ctx);
        console.log(res);
        return res;
    }
    
});
"""

script = session.create_script(scr)

script.load()
sys.stdin.read()

首先报错:frida.transporterror: timeout was reached

# 关闭selinux: 
adb shell 
su
setenforce 0

然后接着报错:frida.transporterror: the connection is closed

在网上找了很多教程花费大半天,最后因为删掉一行日志打印后好使了.
console.log("-----------------------getDesKey-----------------------");
后来感觉是不是日志输出太长了导致的,改成console.log("getDesKey-----------------------");

上一篇下一篇

猜你喜欢

热点阅读