A Rust program that demonstrates how to trigger a Blue Screen of Death (BSOD) by setting the current process as critical using NtSetInformationProcess.
This program demonstrates a technique to trigger a BSOD by:
- Obtaining process token with necessary privileges
- Enabling debug privileges
- Setting the current process as critical using NtSetInformationProcess
- Closing the program triggers the BSOD
- Uses Windows API functions for process manipulation
- Demonstrates proper error handling
- Sets process as critical for system stability
- winapi
- ntapi
- Compile the program using Cargo
- Run the executable
- The program will set itself as critical
- Closing the program will trigger a BSOD
The program uses several Windows API functions:
- OpenProcessToken
- LookupPrivilegeValueA
- AdjustTokenPrivileges
- NtSetInformationProcess
This program is for educational purposes only. Running it will cause a system crash and data loss. Use with caution and only in controlled environments.
@5mukx