Код: Выделить всё
Interceptor.attach(Module.findExportByName("libc.so", "fork"), {
onEnter: function (args) {
try {
// Get the current module calling fork
const caller = Process.getModuleByAddress(this.returnAddress);
console.log("[*] fork called by:", caller.name, "at", this.returnAddress);
console.log("[*] Path to module:", caller.path);
} catch (e) {
console.log("[!] Error resolving module for return address:", this.returnAddress, e);
}
},
onLeave: function (retval) {
console.log("[*] fork returned PID:", retval.toInt32());
setTimeout(inner, 100);
}
});
Проблема в том, что функция ssl_write существует в родительском процессе и в детском процессе, и когда я пытаюсь поднять только ssl_write в дочерний процесс.>
Подробнее здесь: https://stackoverflow.com/questions/797 ... -via-frida