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