From 3ca37aff06d059aee11f954302167261176af084 Mon Sep 17 00:00:00 2001 From: xerox Date: Fri, 20 Dec 2019 01:17:30 -0800 Subject: [PATCH] Update README.md --- README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ce17377..a6c2c01 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,18 @@ # shithook -An inline hooking library for windows. I had issues with other public hooking libraries so I made my own stinker. \ No newline at end of file +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); +``` \ No newline at end of file