Advertisement
theorywrong

Untitled

Mar 5th, 2017
1,284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. int (*sceKernelGetIdPs)(void* ret);
  2. int (*sceKernelGetOpenPsIdForSystem)(void* ret);
  3.  
  4. int kernel_lib = sceKernelLoadStartModule("libkernel.sprx", 0, NULL, 0, NULL, NULL);
  5. sceKernelDlsym(kernel_lib, "sceKernelGetIdPs", &sceKernelGetIdPs);
  6. sceKernelDlsym(kernel_lib, "sceKernelGetOpenPsIdForSystem", &sceKernelGetOpenPsIdForSystem);
  7.  
  8. void* idps = malloc(64);
  9. void* psid = malloc(16);
  10.  
  11. sceKernelGetIdPs(idps); // Missing some byte at end
  12. sceKernelGetOpenPsIdForSystem(psid);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement