Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * system_unlock.c
- */
- #include <linux/kernel.h>
- #include <linux/module.h>
- static int __init system_unlock_init(void)
- {
- unsigned char* mem = (void*)0xC05C2FA9;
- mem[5] = 'o'; // "/system\0" -> "/systom\0"
- return 0;
- }
- module_init(system_unlock_init)
- static void __exit system_unlock_exit(void)
- {
- unsigned char* mem = (void*)0xC05C2FA9;
- mem[5] = 'e'; // "/systom\0" -> "/system\0"
- }
- module_exit(system_unlock_exit)
- MODULE_LICENSE("GPL");
- MODULE_DESCRIPTION("unlock system permission");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement