1
0
Fork
You've already forked Leaf
0
Single header ELF loader specifically for a specific Android mobile game, as well as related utilities
  • C 88.2%
  • Python 10.6%
  • Shell 1.2%
2026年06月16日 21:07:56 +00:00
img Can also haz colour v2 2026年06月16日 21:07:56 +00:00
tests Support for statically linked and non-PIE executables 2026年06月15日 06:20:00 +00:00
tools Remove outdated tool 2025年08月01日 22:23:14 +00:00
.gitignore Fixes, tests 2025年11月15日 18:42:30 +00:00
hookasm.def more work testing will be hell 2024年12月14日 00:37:15 +00:00
leaf.h Support for statically linked and non-PIE executables 2026年06月15日 06:20:00 +00:00
leafhook.h Fix aarch32 ldr, and probably adr and adrp too 2024年12月15日 22:28:09 +00:00
LICENSE Add LICENSE 2025年02月13日 06:52:03 +00:00
README.md Can also haz colour v2 2026年06月16日 21:07:56 +00:00
test.c More loading tests 2024年11月05日 21:22:08 +00:00
test_hooker.c Fix rewrite using size in bytes instead of size in instructions 2024年12月13日 19:44:23 +00:00

Leaf

Leaf is a collection of single header libraries meant for working with programs (mainly video games) at a low level.

  • Leaf - The main project, a custom ELF loader, for AArch32 and AArch64 (with untested x86 and x86_64 support). Originally made for bypassing Android Q's restrictions on marking native code pages as RWX. Natrually all segments are loaded as RWX and it provides some replacement for dlsym() lookups.
  • LeafHook - Native function hooking library, for AArch32 and AArch64, works similarly to something like Cydia Substrate or comex's Substitute. Might support other hooking methods in the future.

Future Plans

  • Thread safe LeafHook with more hooking/detour methods (instruction copy, software break), unhooking support, and even mid-function hooking.
  • LeafDebug for debugging programs without a "real" debugger.