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 ..
ninjaRequirements: 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)