/NtRaiseHardError-Example

A example to cause bsod in windows in c++

Primary LanguageC

NtRaiseHardError

FOR EDUCATIONAL PURPOSES ONLY, USE WITH CARE!, WE ARE NOT RESPONSIBLE FOR ANY DAMAGES TO YOUR MACHINE!
Simple code snippet about ways to trigger BSOD without administrator privilege with undocumented functions from ntdll.dll.
Compatible from Windows XP to 11.

# FINAL UPDATE #
Nov 4 2024
1. Switch the language from C++ to C
2. Fix the previously messy codes
3. More proper error handling
4. Process priority set to highest available

Compilers

Visual Studio or gcc, link to ntdll.dll is not required since it is load ntdll.dll to process.