Hello,Recent,I learn to use the frida framework,but i met a problem.
I have a native function, i know it has three argumens,fisrt is a Int, the second is String,i can print the first argument,but the second argument .i don't konw how to print it. code like this:
Interceptor.attach(Module.findExportByName("libuserinfo.so", "getString"),{
onEnter: function (args) {
send(args[2].toInt32()); // this is first argument.
// this.buf = args[3]; how can i print the second argument?
},
onLeave: function (retval) {
});
Hello,Recent,I learn to use the frida framework,but i met a problem.
I have a native function, i know it has three argumens,fisrt is a Int, the second is String,i can print the first argument,but the second argument .i don't konw how to print it. code like this:
Interceptor.attach(Module.findExportByName("libuserinfo.so", "getString"),{
onEnter: function (args) {
send(args[2].toInt32()); // this is first argument.
// this.buf = args[3]; how can i print the second argument?
},
onLeave: function (retval) {
});