var base_hello_jni =Module.findBaseAddress("libhello_jni.so");
var sub =base_hello_jni.add(0x11111);
//中间省去相关的
//....
}
执行命令:
frida -U com.example.hellojni -l hook.js 会报错: TypeError: cannot read property 'add' of null at [anon] (../../../frida-gum/bindings/gumjs/duktape.c:56618) at hook_native (/hook_3_10.js:44) at main (/hook_3_10.js:58) at frida/runtime/core.js:55