How can i read value of uchar* ?
I tried many ways, it's code which i used:
Interceptor.attach(Module.getExportByName('libsigning.so', 'EVP_DigestSignFinal'), {
onEnter: function (args) {
console.log("RSA.doFinal() [VALID]")
console.log("arg0: OpenSSL object")
console.log("arg1: " + Memory.readUtf8String(args[1]))
console.log("arg2: " + args[2].readUInt())
},
onLeave: function (retval) {
// simply replace the value to be returned with 0
return retval
}
});
What i got:
RSA.doFinal() [VALID]
arg0: RSA object
arg1:
arg2: 512
In output I'm getting unknown character instead of real value
What is a proper way of doing this?