Skip to content

Latest commit

 

History

History
27 lines (15 loc) · 1.8 KB

README.md

File metadata and controls

27 lines (15 loc) · 1.8 KB

Bluescreen of Death

This is a very basic implementation on how to replicate a BSOD (Bluescreen of Death), using Python and Ctypes.

screen-gif

Usage

python bluescreen.py

How does it work?

I won't go too far into detail as this is pretty basic. We are calling RtlAdjustPrivilege to give our process shutdown privileges. After that, we raise a STATUS_NOT_IMPLEMENTED error with NtRaiseHardError, essentially telling our computer that there was an issue and a status was not completed. This causes a BSOD as when we call NtRaiseHardError, it internally sends a HARDERROR_MSG to the Local Inter-Process Communication Server, resulting in a BSOD.

Sources

  1. RtlAdjustPrivilege

  2. NtRaiseHardError

  3. STATUS_NOT_IMPLEMENTED

  4. HARDERROR_MSG

  5. Local Inter-Process Communication Server