You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
418 B
18 lines
418 B
# shithook
|
|
|
|
An inline hooking library for windows. I had issues with other public hooking libraries so I made my own stinker.
|
|
|
|
# usage
|
|
|
|
Installing the hook/Init.
|
|
```cpp
|
|
Hook::Install(
|
|
(uintptr_t) &WriteFile, //address to put inline hook at.
|
|
(uintptr_t) &HookWriteFile //address to jmp too.
|
|
);
|
|
```
|
|
|
|
Disabling the hook so you can call the original function.
|
|
```cpp
|
|
Hook::Disable((uintptr_t)&WriteFile);
|
|
``` |