ad-hook is an advanced, cross-architecture hooking framework, for you and your family.
As of this version, an ARCH
variable is required when building.
cmake -S . -B build -DARCH=$ARCH
cmake --build build
To build the unit tests, the BUILD_TESTING
flag must be set to ON.
... -DBUILD_TESTING=ON
cd build
ctest
Multiple handlers can subscribe to a single hook, than be called sequentially.
Each handler can either yield, or continue to the next handle via call_next()
The hooking logic is independent of the actual patching logic. That is, more patching methods can be implemented using the core hooking logic.
- jumpto patching
- address table overriding
- i386
- x86_64
- arm32le
- arm32be
- arm64le
- arm64be
- mipsbe
- mipsle