Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/forentfraps/winhook
hooking library
https://github.com/forentfraps/winhook
hooks winapi windows
Last synced: about 1 month ago
JSON representation
hooking library
- Host: GitHub
- URL: https://github.com/forentfraps/winhook
- Owner: forentfraps
- License: gpl-3.0
- Created: 2023-12-15T03:42:06.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-18T01:05:24.000Z (about 1 year ago)
- Last Synced: 2023-12-18T08:28:37.934Z (about 1 year ago)
- Topics: hooks, winapi, windows
- Language: C
- Homepage:
- Size: 599 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# winhook
Decided to write a hooking library for windows, mainly for future projects :D
It utilises external disassembler, since writing my own would take ages. Hook, which it creates is not a simple trampoline and actually lets the function run normally.
## Usage
Add all ".c" and ".h" files to your project.Include the winhook.h.
Modify the decoy functions in the header to match the arguments of the hooked function and put the decoy at the end of the function.
Example usage is provided in the test.c
## TODO:
- Check for jump tables, and\or IAT
- Add an option to hook into remote process
- Skim down Zydis, since I do not utilise most of it functionality