https://github.com/hzzheyang/strongR-frida-android
下载 server- 启动形式与失常 server 统一
function fridaCheckPass() {var pfn_strstr = Module.findExportByName("libc.so", "strstr");
Interceptor.attach(pfn_strstr, {onEnter: function (args) {var str1 = Memory.readCString(args[0]);
var str2 = Memory.readCString(args[1]);
if (str2.indexOf("tmp") !== -1 ||
str2.indexOf("frida") !== -1 ||
str2.indexOf("gdbus") !== -1 ||
str2.indexOf("gum-js-loop") !== -1 ||
str2.indexOf("gmain") !== -1 ||
str2.indexOf("linjector") !== -1
) {console.log("str1:%s - str2:%s\n", str1, str2);
this.hook = true;
}
},
onLeave: function (retval) {if (this.hook) {retval.replace(0);
}
}
});
}
frida -U --no-pause -f com.xxx.xxx -l hook.js