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.

24 lines
421 B

4 years ago
# shithook
4 years ago
4 years ago
An inline hooking library for windows. Supports 64 bit and 32 bit applications.
4 years ago
# usage
Installing the hook/Init.
```cpp
4 years ago
hook::install(
&WriteFile, //address to put inline hook at.
&HookWriteFile //address to jmp too.
4 years ago
);
```
Disabling the hook so you can call the original function.
```cpp
4 years ago
hook::disable(&WriteFile);
4 years ago
WriteFile(.....)
4 years ago
```
Enabling the hook.
```
4 years ago
hook::enable(&WriteFile);
4 years ago
```