xerox 5 years ago
commit ef0c814d62

@ -1,14 +1,14 @@
# shithook
An inline hooking library for windows.
A c++ header only library for inline hooking on windows. Supports 64 bit and 32 bit applications. Small, simple, and easily detected :)
# usage
Installing the hook/Init.
```cpp
hook::install(
&WriteFile, //address to put inline hook at.
&HookWriteFile //address to jmp too.
hook::make_hook(
&WriteFile, //address to put inline hook at.
&HookWriteFile, //address to jmp too.
);
```
@ -21,11 +21,4 @@ Disabling the hook so you can call the original function.
Enabling the hook.
```
hook::enable(&WriteFile);
```
# info
All hooks are stored inside of a `std::map<std::uintptr_t, std::unique_ptr<detour>>` for quick and easy access to each object. All functions
interacting with this vector will use the address of the inline hook as the key so make sure the address is easy to access in your code!
Keep in mind that this is an inline hooking library so you will need to uninstall the hook to call the actual function. Dont forget to reinstall your hooks!
```
Loading…
Cancel
Save