This Rust program demonstrates how to trigger a Blue Screen of Death (BSOD) using NtRaiseHardError with random error codes.
- Hides the console window
- Sets process priority to high
- Enables shutdown privileges using RtlAdjustPrivilege
- Generates random BSOD error codes
- Triggers BSOD using NtRaiseHardError
- Shows error message in case of failure
- winapi
- ntapi
- Build the project:
cargo build --release- Run the executable:
cargo run --release- Uses RtlAdjustPrivilege to enable shutdown privileges (privilege ID: 19)
- Generates random error codes in the format: 0xC000_0000 | ((random & 0xF00) << 8) | ((random & 0xF0) << 4) | (random & 0xF)
- Sets process priority to HIGH_PRIORITY_CLASS
- Hides the console window using ShowWindow with SW_HIDE
This program is for educational purposes only. Running it will cause your system to crash with a Blue Screen of Death.
@5mukx