我正在学习 frida 并尝试挂钩一个如下所示的函数:
`.method public final fn()[B`
它返回一个字节数组。这是我的代码:
Java.perform(function () {
var test = Java.use("com...");
test.fn.overload().implementation = function () {
var ret = this.fn();
console.log("how to write here?");
return ret;
};
});
如何打印ret函数返回的变量?这是一个byte[]。我试过了,console.log但它只打印一个[object],并hexdump抱怨'expected a pointer'。如何打印数组?