Skip to content

Latest commit

 

History

History

API_Hooking

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

API Hooking 🦀

Overview

API hooking in Windows, calls to these APIs are intercepted, allowing them to be monitored, modified or redirected. This is done by inserting intermediate code (the "hook") between the function call and its actual execution. When an application calls an API function, the hook is triggered first, allowing the operation to be manipulated.

Running

Performing the API Hooking technique in MessageBoxA: Hook Enabled

Checking the debugger for the change: Debugger Enabled

Eliminating the API hook: Hook Disabled

Checking the debugger when disabling the hook: Debugger Disabled

Usage

You can run with cargo run or the compiled binary directly:

cargo run
target/release/api_hooking.exe