Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bmax121/KernelPatch
Patching and hooking the Linux kernel with only a stripped Linux kernel image.
https://github.com/bmax121/KernelPatch
android-root hijack inline-hook kernel-security kernelpatch syscall-hook
Last synced: 12 days ago
JSON representation
Patching and hooking the Linux kernel with only a stripped Linux kernel image.
- Host: GitHub
- URL: https://github.com/bmax121/KernelPatch
- Owner: bmax121
- License: gpl-2.0
- Created: 2023-07-05T12:35:40.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-21T11:27:47.000Z (6 months ago)
- Last Synced: 2024-05-21T12:56:04.234Z (6 months ago)
- Topics: android-root, hijack, inline-hook, kernel-security, kernelpatch, syscall-hook
- Language: C
- Homepage:
- Size: 2.02 MB
- Stars: 503
- Watchers: 16
- Forks: 80
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# KernelPatch
**Patching and hooking the Linux kernel with only stripped Linux kernel image.**
``` shell
_ __ _ ____ _ _
| |/ /___ _ __ _ __ ___| | _ \ __ _| |_ ___| |__
| ' // _ \ '__| '_ \ / _ \ | |_) / _` | __/ __| '_ \
| . \ __/ | | | | | __/ | __/ (_| | || (__| | | |
|_|\_\___|_| |_| |_|\___|_|_| \__,_|\__\___|_| |_|```
- Obtain all symbol information without source code and symbol information.
- Inject arbitrary code into the kernel. (Static patching the kernel image or Runtime dynamic loading).
- Kernel function inline hook and syscall table hook are provided.
- Additional SU for Android.If you are using Android, [APatch](https://github.com/bmax121/APatch) would be a better choice.
## Requirement
CONFIG_KALLSYMS=y
## Supported Versions
Currently only supports arm64 architecture.
Linux 3.18 - 6.2 (theoretically)
Linux 6.3+ (not yet adapted)## Get Involved
## More Information
[Documentation](./doc/)
## Credits
- [vmlinux-to-elf](https://github.com/marin-m/vmlinux-to-elf): Some ideas for parsing kernel symbols.
- [android-inline-hook](https://github.com/bytedance/android-inline-hook): Some code for fixing arm64 inline hook instructions.
- [tlsf](https://github.com/mattconte/tlsf): Memory allocator used for KPM. (Need another to allocate ROX memory.)## License
KernelPatch is licensed under the **GNU General Public License (GPL) 2.0** ().