Advertisement
nanpuhaha

Untitled

Jan 30th, 2019
964
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <mach-o/dyld.h>
  2. #import "substrate.h"
  3.  
  4. int sub_100037950(void)
  5. {
  6.     return 0;
  7. }
  8.  
  9. int (*orig_100037950)();
  10.  
  11. %ctor
  12. {
  13.     @autoreleasepool
  14.     {
  15.         unsigned long test1 = _dyld_get_image_vmaddr_slide(0) + 0x100037950;
  16.         MSHookFunction((void *)test1, (void *)sub_100037950, (void **)&orig_100037950);
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement