Skip to content

Kernel-Mode DLL Injector A C++ kernel-level DLL injector for testing anti-cheat systems in game development on Windows 11. Features manual mapping, thread hijacking, and payload encryption to challenge modern kernel anti-cheats like BattlEye and EAC. Includes a kernel driver (.sys) and user-mode loader (.exe). For educational use only.

Notifications You must be signed in to change notification settings

cybryk/kernelmodeinjector

Repository files navigation

Kernel-Mode DLL Injector

Advanced Anti-Cheat Testing for Game Development

Windows 11 C++ MIT License
🚀 Overview

The Kernel-Mode DLL Injector is a cutting-edge tool built in C++ to test anti-cheat systems in game development. Targeting Windows 11, it uses kernel-level techniques to inject DLLs into processes, challenging modern anti-cheats like BattlEye and EAC.

Components:
    modern_injector.sys: Kernel driver for injection.
    loader.exe: User-mode utility to trigger it.
Purpose: Research and anti-cheat validation.

🛠️ How It Works

This injector leverages advanced kernel techniques:

Payload Encryption: XOR-encrypts the DLL to evade static detection.
Manual Mapping: Maps the DLL directly into the target process’s memory.
Thread Hijacking: Executes DllMain via an existing thread, avoiding new thread creation.
Stealth: Bypasses user-mode hooks with kernel memory operations.

Perfect for simulating sophisticated injection methods in a controlled environment. 📋 Prerequisites

OS: Windows 11 (23H2+, Build 22631.xxx)
IDE: Visual Studio 2022
Tools: WDK 10.0.26100.2454, Windows SDK 10.0.26100.x
Privileges: Admin access

📂 Project Structure text ├── kernelmode/ │ ├── modern_injector.cpp # Kernel driver source │ └── x64/Release/ # Output: modern_injector.sys ├── loader/ │ ├── loader.cpp # User-mode loader source │ └── x64/Release/ # Output: loader.exe └── README.md # Documentation 🔧 Compilation

  1. Environment Setup

    Install Visual Studio 2022: Include "Desktop development with C++". Add WDK: Download WDK 10.0.26100.2454. Run wdksetup.exe → Install with matching SDK.

  2. Build the Driver (.sys)

    Open kernelmode/kernelmode.vcxproj or create an "Empty WDM Driver" project. Add modern_injector.cpp to "Source Files". Configure: Configuration Type: Driver Target Name: modern_injector Output File: $(OutDir)\modern_injector.sys Release | x64 Build: Build > Rebuild Solution.

  3. Build the Loader (.exe)

    Open loader/loader.vcxproj or create a "Console App". Add loader.cpp. Set: Release | x64. Build: Build > Rebuild Solution.

▶️ Running

Enable Test Signing:
cmd

bcdedit /set testsigning on Reboot. Load Driver (Admin CMD): cmd

sc create ModernInjector binPath="path\to\modern_injector.sys" type=kernel
sc start ModernInjector
Run Loader:
    Edit loader.cpp: Set target PID and DLL path.
    Rebuild → Run loader.exe as Admin.

⚠️ Troubleshooting

Linker Errors (LNK1169): Ensure only modern_injector.cpp in driver project; clean and rebuild.
Wrong Output: Verify Configuration Type is Driver for .sys.
Driver Load Fails: Check test signing; review Event Viewer logs.

🤝 Contributing

Fork → Modify → Pull Request.
Open issues for bugs or enhancements.

📜 License

MIT License – For testing only. Use responsibly in development environments.

Built for innovation, tested with precision.

About

Kernel-Mode DLL Injector A C++ kernel-level DLL injector for testing anti-cheat systems in game development on Windows 11. Features manual mapping, thread hijacking, and payload encryption to challenge modern kernel anti-cheats like BattlEye and EAC. Includes a kernel driver (.sys) and user-mode loader (.exe). For educational use only.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages