WindowsDanger is an open-source project that help developers to Learn & Hack Windows Kernel.
This driver Dreamed to assist developers, hardware debuggers, and reverse engineers in accessing and manipulating system resources more conveniently. By installing and launching this driver, you can elevate all threads to Ring0, allowing for full control over low-level hardware and system resources.
This project is still under development. For more quick access, please use the QEMU_Danger project.
Ke386SetIoAccessMap
and Ke386IoSetAccessProcess
is NOT available in Win10/Server 2019 and above. It's better to learn how the x86 CPU work within TSS and IOPM.
Currently achieved:
- Disable Write-Protection by modifiy CR0
- Hack Ring3 Segment in GDT to Ring0
- Insert a new IDT entry 78H
Known Issues:
- Multiple CPU Failure. Just use one Core CPU VM for now.
Ideas:
- Use soft
int
instruct from Ring3, and hack stack for return CS RPL -> 0, theniretq
. - Insert a new Call Gate, then call it from Ring3, then hack stack for return CS RPL -> 0, then return.
- Lab Experiment HandBooks: Contains Microsoft Learn Student Ambassador Workshop
- Download the WinDbg Preview tool from the Microsoft Store or Non Store
- Install WDK
- Read Kernel Debugging Document on the Microsoft Learn
- Read My Experiment log for more details
- Cource: Arch2001_x86-64_OS_Internals
- Elevate all threads to Ring0 for full control over low-level system resources
- Facilitate hardware debugging and reverse engineering tasks
- Support for Windows operating systems
MUST Attach Kernel Debugger to prevent BSOD, because int 3
will trigger BSOD without Kernel Debugger.
- Download the latest version of the WindowsDanger driver.
- Copy the driver file to an appropriate directory (e.g.,
C:\Windows\System32\drivers
). - Run the following command with administrator privileges to install the driver:
sc create WindowsDanger type= kernel binPath= C:\Windows\System32\drivers\WindowsDanger.sys
- Start the driver:
sc start WindowsDanger
- Stop the driver:
sc stop WindowsDanger
- Remove the driver:
sc delete WindowsDanger
- Delete the driver file.
WindowsDanger is licensed under the MIT License. Please refer to the LICENSE file for more information.
We welcome your contributions to the WindowsDanger project! Please see CONTRIBUTING.md for how to get started.
If you encounter any issues while using WindowsDanger, or have any suggestions and feedback, please submit your concerns on the Issues page.
WindowsDanger is intended for learning and research purposes only. The use of this driver may result in system instability, data loss, or other unintended consequences. The project authors and contributors are not responsible for any damages or losses resulting from the use of this driver. By using WindowsDanger, you agree to assume all risks.