r00tkit is a minimal Windows kernel-mode driver (rootkit-style) designed for educational and demonstration purposes. It allows controlled communication between user-mode and kernel-mode via IOCTL, with capabilities such as message logging and basic process termination from kernel space.
- Simple kernel-mode driver setup using
IoCreateDeviceand symbolic link. - Handles basic
IOCTLcommunication from user-mode. - Supports commands:
print <message>β Print a custom message from user-mode to the kernel debugger.kill <pid>β Terminate a process from kernel-mode by PID (if permissions allow).
- Clean unload routine to remove device and symbolic link.
- User-mode client (written in C) to send commands to the driver.
- Can by used to kill EDR processes
π Driver1
- βββ Driver1.cpp # Kernel-mode driver source code
- βββ Com.cpp # User-mode interface to communicate with the driver
- Open the project in Visual Studio with the Windows Driver Kit (WDK) installed.
- Set the configuration to x64 and Release.
- Compile as a kernel-mode driver (KMDF or WDM, depending on your setup).
- Use tools like
sc.exeorOSR Loaderto load the.sysfile.sc.exe create Driver1 type= kernel binPath= "C:\Path\To\Driver1.sys" sc.exe start Driver1
- Compile with any C compiler (e.g., MSVC, MinGW).
- Run from admin shell:
Com.exe
Developed by Jehad Abudagga
YouTube: https://www.youtube.com/@j3h4ck