Archive of https://github.com/opa334/litehook — Lightweight *OS hooking library with no dependencies except for libsystem
  • C 96.4%
  • Makefile 3.2%
  • Shell 0.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-04 02:47:49 +02:00
external/include Add project (unfinished) 2024-09-04 18:13:45 +02:00
src Hopefully fix all the bugs in symbol finder (man it was broken before...), add proper test for it 2026-10-04 02:47:49 +02:00
Tests Hopefully fix all the bugs in symbol finder (man it was broken before...), add proper test for it 2026-10-04 02:47:49 +02:00
.gitignore Hopefully fix all the bugs in symbol finder (man it was broken before...), add proper test for it 2026-10-04 02:47:49 +02:00
LICENSE Add project (unfinished) 2024-09-04 18:13:45 +02:00
README.md Add project (unfinished) 2024-09-04 18:13:45 +02:00

litehook

Lightweight *OS hooking library with no dependencies except for libsystem

Supported Functionality

Since this is a lightweight library, only very basic functionality is supported, this includes:

  • Finding <redacted> symbols by parsing the dyld_shared_cache (litehook_find_dsc_symbol)
  • Replacing a function with a branch to some other location/function, with no ability to call the original function (litehook_hook_function)
  • Rebinding a symbol in the GOT of an image, similar to fishhook and dyld_dynamic_interpose (litehook_rebind_symbol)

Supported Environments:

Architectures:

  • arm64e
  • arm64
  • armv7s
  • armv7

litehook is intended to work on iOS 10 and up.