dll-hijack
dll-hijack copied to clipboard
DLL hijack codes for cmake on windows.
dll-hijack
DLL hijack codes for cmake on windows.
Usage
Compile
Requirements: cmake, mingw gcc, ninja.
Use code below or simply run ./build.sh
mkdir build
cd build
cmake -GNinja ..
ninja
Generate code for existing system dll
Requirements: bash (msys2), gendef (mingw)
- Run
gen_code.sh ${name}.dll - Modify
${name}.cwith codes you want to execute when dll attached or detached. - Compile (check previous part)