Advertisement
goroh_kun

n-04cのnandlock解除モジュールのソース

Oct 28th, 2011
796
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. /*
  2. * system_unlock.c
  3. */
  4.  
  5. #include <linux/kernel.h>
  6. #include <linux/module.h>
  7.  
  8. static int __init system_unlock_init(void)
  9. {
  10. unsigned char* mem = (void*)0xC05C2FA9;
  11. mem[5] = 'o'; // "/system\0" -> "/systom\0"
  12. return 0;
  13. }
  14. module_init(system_unlock_init)
  15.  
  16. static void __exit system_unlock_exit(void)
  17. {
  18. unsigned char* mem = (void*)0xC05C2FA9;
  19. mem[5] = 'e'; // "/systom\0" -> "/system\0"
  20. }
  21. module_exit(system_unlock_exit)
  22.  
  23. MODULE_LICENSE("GPL");
  24. MODULE_DESCRIPTION("unlock system permission");
  25.  
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement