Skip to content

myfreeer/dll-hijack

Repository files navigation

dll-hijack

Build status

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)

  1. Run gen_code.sh ${name}.dll
  2. Modify ${name}.c with codes you want to execute when dll attached or detached.
  3. Compile (check previous part)

Credits