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.
|
|
|
# shithook
|
|
|
|
|
|
|
|
A c++ header only library for inline hooking. Supports x86_64, x86, and arm. Small, simple, and easily detected :)
|
|
|
|
|
|
|
|
# usage
|
|
|
|
|
|
|
|
Installing the hook/Init.
|
|
|
|
```cpp
|
|
|
|
hook::make_hook(
|
|
|
|
&WriteFile, //address to put inline hook at.
|
|
|
|
&HookWriteFile //address to jmp too.
|
|
|
|
);
|
|
|
|
```
|
|
|
|
|
|
|
|
Disabling the hook so you can call the original function.
|
|
|
|
```cpp
|
|
|
|
hook::disable(&WriteFile);
|
|
|
|
WriteFile(.....)
|
|
|
|
```
|
|
|
|
|
|
|
|
Enabling the hook.
|
|
|
|
```
|
|
|
|
hook::enable(&WriteFile);
|
|
|
|
```
|