|
@@ -5,22 +5,27 @@ export let HookImpl = {
|
|
|
|
|
|
start: function () {
|
|
|
let module = Process.findModuleByName("libil2cpp.so");
|
|
|
- Interceptor.attach(module.base.add(0x6A65EC), {
|
|
|
- onEnter: function (args) {
|
|
|
- var pointer = args[0];
|
|
|
+ // Interceptor.attach(module.base.add(0x6A65EC), {
|
|
|
+ // onEnter: function (args) {
|
|
|
+ // var pointer = args[0];
|
|
|
+ //
|
|
|
+ // pointer.add(0x18).writeU32(100);
|
|
|
+ // //101
|
|
|
+ // console.log("pointer " + pointer)
|
|
|
+ // logHHex(pointer)
|
|
|
+ // this.ptr =pointer;
|
|
|
+ // },
|
|
|
+ // onLeave: function (ret) {
|
|
|
+ // console.log("level");
|
|
|
+ // logHHex(this.ptr)
|
|
|
+ // return ret;
|
|
|
+ // }
|
|
|
+ // //32
|
|
|
+ // })
|
|
|
+ setTimeout(function (){
|
|
|
|
|
|
- pointer.add(0x18).writeU32(100);
|
|
|
- //101
|
|
|
- console.log("pointer " + pointer)
|
|
|
- logHHex(pointer)
|
|
|
- this.ptr =pointer;
|
|
|
- },
|
|
|
- onLeave: function (ret) {
|
|
|
- console.log("level");
|
|
|
- logHHex(this.ptr)
|
|
|
- return ret;
|
|
|
- }
|
|
|
- //32
|
|
|
- })
|
|
|
+ let nativePointer = module.base.add(0x9AD338).readPointer();
|
|
|
+ logHHex(nativePointer);
|
|
|
+ },5000);
|
|
|
}
|
|
|
}
|