{"id":13480358,"url":"https://github.com/bmax121/KernelPatch","last_synced_at":"2025-03-27T10:32:38.265Z","repository":{"id":178943997,"uuid":"662576781","full_name":"bmax121/KernelPatch","owner":"bmax121","description":"Patching and hooking the Linux kernel with only a stripped Linux kernel image.","archived":false,"fork":false,"pushed_at":"2024-05-21T11:27:47.000Z","size":2121,"stargazers_count":503,"open_issues_count":29,"forks_count":80,"subscribers_count":16,"default_branch":"main","last_synced_at":"2024-05-21T12:56:04.234Z","etag":null,"topics":["android-root","hijack","inline-hook","kernel-security","kernelpatch","syscall-hook"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bmax121.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-05T12:35:40.000Z","updated_at":"2024-06-11T14:27:35.688Z","dependencies_parsed_at":"2024-01-19T15:29:12.239Z","dependency_job_id":"a8c8df03-8a99-4564-99e8-26ae7132f9dc","html_url":"https://github.com/bmax121/KernelPatch","commit_stats":null,"previous_names":["bmax121/kernelpatch"],"tags_count":41,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmax121%2FKernelPatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmax121%2FKernelPatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmax121%2FKernelPatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmax121%2FKernelPatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bmax121","download_url":"https://codeload.github.com/bmax121/KernelPatch/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222239291,"owners_count":16953912,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android-root","hijack","inline-hook","kernel-security","kernelpatch","syscall-hook"],"created_at":"2024-07-31T17:00:37.942Z","updated_at":"2025-03-27T10:32:38.257Z","avatar_url":"https://github.com/bmax121.png","language":"C","readme":"# KernelPatch\n\n**Patching and hooking the Linux kernel with only stripped Linux kernel image.**\n\n``` shell\n _  __                    _ ____       _       _     \n| |/ /___ _ __ _ __   ___| |  _ \\ __ _| |_ ___| |__  \n| ' // _ \\ '__| '_ \\ / _ \\ | |_) / _` | __/ __| '_ \\ \n| . \\  __/ |  | | | |  __/ |  __/ (_| | || (__| | | |\n|_|\\_\\___|_|  |_| |_|\\___|_|_|   \\__,_|\\__\\___|_| |_|\n\n```\n\n- Obtain all symbol information without source code and symbol information.\n- Inject arbitrary code into the kernel. (Static patching the kernel image or Runtime dynamic loading).\n- Kernel function inline hook and syscall table hook are provided.\n- Additional SU for Android.\n\nIf you are using Android, [APatch](https://github.com/bmax121/APatch) would be a better choice.\n\n## Requirement\n\nCONFIG_KALLSYMS=y  \n\n## Supported Versions\n\nCurrently only supports arm64 architecture.  \n\nLinux 3.18 - 6.6 (theoretically)  \n\n## Get Involved\n\n## More Information\n\n[Documentation](./doc/)\n\n## Credits\n\n- [vmlinux-to-elf](https://github.com/marin-m/vmlinux-to-elf): Some ideas for parsing kernel symbols.\n- [android-inline-hook](https://github.com/bytedance/android-inline-hook): Some code for fixing arm64 inline hook instructions.\n- [tlsf](https://github.com/mattconte/tlsf): Memory allocator used for KPM. (Need another to allocate ROX memory.)\n\n## License\n\nKernelPatch is licensed under the **GNU General Public License (GPL) 2.0** (\u003chttps://www.gnu.org/licenses/old-licenses/gpl-2.0.html\u003e).\n","funding_links":[],"categories":["C","others","Related Projects"],"sub_categories":["Alternative Root Solutions"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbmax121%2FKernelPatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbmax121%2FKernelPatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbmax121%2FKernelPatch/lists"}