SpecterDev

PS4 fork patch 5.05

Jan 24th, 2020
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1. #define KERNEL_OFFSET_SYS_FORK_PATCH_1 0x20763
  2.  
  3. void kernel_patch_fork()
  4. {
  5.     kernel_write_protection_disable();
  6.  
  7.     uint8_t *kmem = (uint8_t *)(kernelBase + KERNEL_OFFSET_SYS_FORK_PATCH_1);
  8.  
  9.     for(int i = 0; i < 9; i++)
  10.     {
  11.         kmem[i] = 0x90;
  12.     }
  13.  
  14.     kernel_write_protection_enable();
  15. }
Add Comment
Please, Sign In to add comment