https://github.com/niansa/uwhook
https://github.com/niansa/uwhook
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/niansa/uwhook
- Owner: niansa
- License: cc0-1.0
- Created: 2024-12-31T18:29:23.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2025-01-09T15:23:22.000Z (5 months ago)
- Last Synced: 2025-01-09T16:32:54.158Z (5 months ago)
- Language: C++
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UWHook
Minimal native function hooking library for x86_64 on Windows.
## Features
* **NOT THREAD SAFE**: Optionally record address of called function before triggering hook (retrieve using `UWHook::getTrampolineCaller()`)
* Temporary hook release using `UWHookRelease` RAII class
* Very very minimal
* No global state
* Easily portable to other platforms## Limitations
* Only works on Windows for x86_64 (64 bit x86) programs
* Won't hook inlined function calls
* Can't pass user data to hook function
* Requires function padding of at least 12 bytes in hooked code if any hooked function is shorter than 12 bytes
* Allows no more than one hook on a single function## Use cases
* Reverse engineering
* Game modding (works with il2cpp!)