Minimal Windows-focused template for developing and testing a DLL and a simple injector. Intended for education and experimentation only, do not use for malicious purposes.
This repository contains a minimal DLL project plus a small injector program so you can prototype DLL-based tooling and learn Windows process injection techniques in a controlled environment.
- Git
- CMake >= 3.21
- Ninja (optional, recommended for fast builds)
- Visual Studio 2022 (Desktop development with C++) for MSVC toolchain
Clone the repository and initialize submodules:
git clone --recursive https://github.com/Mewski/internal-cheat-template.git
cd internal-cheat-template
git submodule update --init --recursiveUsing Developer PowerShell for VS 2022:
patch -p1 -i ./patches/polyhook-2.patch
cmake -B build -G "Ninja" -DCMAKE_BUILD_TYPE=Release .
cmake --build build --config ReleaseBuild artifacts (executables and DLLs) are written to build/bin/.
From build/bin/ run the injector to load a DLL into a target process:
./dll-injector.exe <pid> <path/to/template-dll.dll>Example:
./dll-injector.exe 1337 ./template-dll.dllNotes:
- The injector is a simple example and performs synchronous injection for demonstration.
- The
template-dllproject contains a basicDllMainand an exported helper so you can extend and experiment.
template-dll/— DLL source and CMake targetsdll-injector/— injector source and CMake targetsstub-executable/— optional test host executabledependencies/— vendored dependencies and submodules
This repository is for learning and defensive purposes. Do not use it to harm others or violate laws. If you're unsure whether a use is permitted, seek guidance.
This project is licensed under the MIT License. See LICENSE for details.