hooklinker.js 621 B

123456789101112131415161718192021222324
  1. import {HookImpl} from "./HookImpl";
  2. export let hooklinker = {
  3. start:function (){
  4. // linker64 arm64
  5. if (Process.pointerSize===8){
  6. let module = Process.findModuleByName("linker64");
  7. Interceptor.attach(module.base.add(0xb5b48),{
  8. onEnter:function (args){
  9. var path= args[3].readCString();
  10. console.log("path "+path);
  11. if (path.includes("libil2cpp.so")){
  12. HookImpl.start();
  13. }
  14. }
  15. })
  16. }else {
  17. //linker
  18. }
  19. }
  20. }