offsets2.h 1017 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #ifndef OFFSETS_H
  2. #define OFFSETS_H
  3. #include "common2.h" // kptr_t
  4. typedef struct
  5. {
  6. const char *version;
  7. kptr_t base;
  8. // Structure offsets
  9. kptr_t sizeof_task;
  10. kptr_t task_itk_self;
  11. kptr_t task_itk_registered;
  12. kptr_t task_bsd_info;
  13. kptr_t proc_ucred;
  14. #ifdef __LP64__
  15. kptr_t vm_map_hdr;
  16. #endif
  17. kptr_t ipc_space_is_task;
  18. kptr_t realhost_special;
  19. kptr_t iouserclient_ipc;
  20. kptr_t vtab_get_retain_count;
  21. kptr_t vtab_get_external_trap_for_index;
  22. // Data
  23. kptr_t zone_map;
  24. kptr_t kernel_map;
  25. kptr_t kernel_task;
  26. kptr_t realhost;
  27. // Code
  28. kptr_t copyin;
  29. kptr_t copyout;
  30. kptr_t chgproccnt;
  31. kptr_t kauth_cred_ref;
  32. kptr_t ipc_port_alloc_special;
  33. kptr_t ipc_kobject_set;
  34. kptr_t ipc_port_make_send;
  35. kptr_t osserializer_serialize;
  36. kptr_t root_user_surface_vtab;
  37. #ifdef __LP64__
  38. kptr_t rop_ldr_x0_x0_0x10;
  39. #else
  40. kptr_t rop_ldr_r0_r0_0xc;
  41. #endif
  42. } offsets_t;
  43. offsets_t* get_offsets(void);
  44. #endif