Skip to content

An fork of inthook (Simple hooking library based on interrupt exceptions) with bypass to VirtualProtect/NtProtectVirtualMemory failing using syscalls

License

Notifications You must be signed in to change notification settings

TheRealJoelmatic/maticHook

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Matic Hook

This is a simple and minimal hooking library that uses syscalls. It was made to bypass anticheat hooks (e.g., NtProtectVirtualMemory, VirtualProtect) that block access to changing the assembly, rendering libraries like MinHook unusable.

You could also use the .asm file provided in this project to update minhook to work. (VirtualProtect in Minhook)

UC thread: https://www.unknowncheats.me/forum/combat-master/663786-hooks.html

Assembly

(The function is an standard get fov for unity)

Not hooked Not Hook Diagram

Hooked Not Hook Diagram

How to use

void WINAPI hk_weapon_sway_update(void* thisptr) {
    if (modules::noSwayEnabled) {
        //stop weapon sway
        return;
    }

    //return normal function
    return original_weapon_sway_update(thisptr);
}


void main(){
    //init library
    inthook::init()
    
    //make hook
    lpTarget = (LPVOID)(CombatMaster::GameAssembly + Offsets::WeaponSwayUpdate);
    maticHook::create(lpTarget, hk_weapon_sway_update, reinterpret_cast<void*&>(original_weapon_sway_update));
}

References

About

An fork of inthook (Simple hooking library based on interrupt exceptions) with bypass to VirtualProtect/NtProtectVirtualMemory failing using syscalls

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 90.1%
  • Assembly 9.9%