A c++ header only library for inline hooking. Supports x86_64, x86, and arm. Small, simple, and easily detected :)
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.
xerox 62b0f81c6e
Update README.md
4 years ago
README.md Update README.md 4 years ago
hook.hpp added x86 support and cleaned the code up 4 years ago
main.cpp added x86 support and cleaned the code up 4 years ago
shithook.sln added x86 support and cleaned the code up 4 years ago
shithook.vcxproj added x86 support and cleaned the code up 4 years ago
shithook.vcxproj.filters added x86 support and cleaned the code up 4 years ago
shithook.vcxproj.user added x86 support and cleaned the code up 4 years ago

README.md

shithook

An inline hooking library for windows. Supports 64 bit and 32 bit applications.

usage

Installing the hook/Init.

hook::make_hook(
    &WriteFile,      //address to put inline hook at.
    &HookWriteFile,  //address to jmp too.
    false            //you dont need to install the hook when you make one
);

Disabling the hook so you can call the original function.

 hook::disable(&WriteFile);
 WriteFile(.....)

Enabling the hook.

hook::enable(&WriteFile);