patchfinder64.h 687 B

1234567891011121314151617181920212223242526
  1. #ifndef PATCHFINDER64_H_
  2. #define PATCHFINDER64_H_
  3. #include <stdint.h>
  4. int init_kernel(uint64_t base, const char *filename);
  5. void term_kernel(void);
  6. int init_patchfinder(const char *filename);
  7. uint64_t find_trustcache(void);
  8. uint64_t find_amficache(void);
  9. // Fun part
  10. uint64_t find_allproc_electra(void);
  11. uint64_t find_add_x0_x0_0x40_ret(void);
  12. uint64_t find_copyout_electra(void);
  13. uint64_t find_bzero_electra(void);
  14. uint64_t find_bcopy_electra(void);
  15. uint64_t find_rootvnode(void);
  16. uint64_t find_trustcache_electra(void);
  17. uint64_t find_amficache_electra(void);
  18. uint64_t find_realhost(void);
  19. uint64_t find_zone_map_ref(void);
  20. uint64_t find_boot_args(unsigned* cmdline_offset);
  21. #endif