Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

LookupPrivilegeValue BSOD

A Rust program that demonstrates how to trigger a Blue Screen of Death (BSOD) by manipulating system privileges and using the NtRaiseHardError API.

Download

Author

@5mukx

Description

This program demonstrates a technique to trigger a BSOD by:

  1. Obtaining process token with necessary privileges
  2. Looking up and enabling the shutdown privilege
  3. Adjusting token privileges
  4. Raising a hard error using NtRaiseHardError

Features

  • Uses Windows API functions for privilege manipulation
  • Demonstrates proper error handling
  • Interactive user prompt before triggering BSOD

Dependencies

  • winapi
  • ntapi

Usage

  1. Compile the program using Cargo
  2. Run the executable
  3. Press any key when prompted to trigger the BSOD

Technical Details

The program uses several Windows API functions:

  • OpenProcessToken
  • LookupPrivilegeValueA
  • AdjustTokenPrivileges
  • NtRaiseHardError

Warning

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.