Advertisement
nanpuhaha

Untitled

Jan 29th, 2019
635
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. %ctor
  10. {
  11.     @autoreleasepool
  12.     {
  13.         unsigned long test1 = _dyld_get_image_vmaddr_slide(0) + 0x100037950;
  14.         MSHookFunction((void *)test1, (void *)sub_100037950, (void **)&orig_100037950);
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement