Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

BSOD NtRaiseHardError

This Rust program demonstrates how to trigger a Blue Screen of Death (BSOD) using NtRaiseHardError with random error codes.

Download

Features

  • 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

Dependencies

  • winapi
  • ntapi

Usage

  1. Build the project:
cargo build --release
  1. Run the executable:
cargo run --release

Technical Details

  • 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

Warning

This program is for educational purposes only. Running it will cause your system to crash with a Blue Screen of Death.

Author

@5mukx