With Frida I print the SSL_write
Interceptor.attach(Module.findExportByName("libssl.so", "SSL_write"), {
onEnter: function (args) {
console.log(args[1].readByteArray(args[2].toInt32()));
}
});
I want to replace the buffer to write to SSL , if buffer contain Ascii of AAAAAA replace with BBBBBB
How can I do that ?