HookImpl.js 888 B

12345678910111213141516171819202122232425262728293031
  1. import {logHHex} from "./logger";
  2. export let HookImpl = {
  3. start: function () {
  4. let module = Process.findModuleByName("libil2cpp.so");
  5. // Interceptor.attach(module.base.add(0x6A65EC), {
  6. // onEnter: function (args) {
  7. // var pointer = args[0];
  8. //
  9. // pointer.add(0x18).writeU32(100);
  10. // //101
  11. // console.log("pointer " + pointer)
  12. // logHHex(pointer)
  13. // this.ptr =pointer;
  14. // },
  15. // onLeave: function (ret) {
  16. // console.log("level");
  17. // logHHex(this.ptr)
  18. // return ret;
  19. // }
  20. // //32
  21. // })
  22. setTimeout(function (){
  23. let nativePointer = module.base.add(0x9AD338).readPointer();
  24. logHHex(nativePointer);
  25. },5000);
  26. }
  27. }