Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

A simple 200 LOC kernel driver that displays a bitmap after a BSOD.

License

Notifications You must be signed in to change notification settings

AnalogFeelings/KmdfMandelcheck

Repository files navigation

🟦 KmdfMandelcheck

GitHub repo size Lines of code GitHub issues GitHub pull requests GitHub GitHub Repo stars GitHub commit activity

This is a simple 200 LOC driver that displays a bitmap on screen after a BSOD occurs.

It uses a modified merge of ReactOS's display.h and bootvid.h to be able to work with bootvid.dll properly.

🤔 Examples

flopa.mp4
jinx.mp4

📦 Building

Here are instructions on how to build this driver.

🔗 Building BOOTVID.lib

Open up the Visual Studio developer prompt, cd to KmdfMandelcheck's root directory, and then run the following command.

lib /def:BOOTVID.def /machine:x64 /out:BOOTVID.lib

⚙️ Building Mandelcheck.sys

Open Visual Studio 2022 and select "Debug x64" or "Release x64". Build the solution, and you will have Mandelcheck.sys in the output folder.

🏃 How To Run

Drop Mandelcheck.sys in your VM and in an elevated command prompt run the following command.

sc create Mandelcheck binPath=C:\Where\The\File\Is\Mandelcheck.sys type=kernel start=auto

Important

This driver will not work under UEFI systems. You must use a VM booted into Legacy BIOS mode.

🖼️ Building A Valid Bitmap

Open your bitmap file in GIMP, scale/crop it down to 640x480, and make it a 16 color indexed image. Export it as .bmp, and now open it in Paint. Save the image as target.bmp and place it in C:\KmdfMandelcheck\ for the driver to work.

Important

The driver will display a black screen if the bitmap is not 16 color, 4bpp.

🥁 And Now...

Run sc start Mandelcheck in an elevated command prompt and create a BSOD. You can use BSODMachine for an easy way, or you can break and execute .crash in WinDBG. If you are using WinDBG, once a bugcheck occurs, you must enter g to continue execution, otherwise the system will be completely halted.

⚖️ License

Licensed under the GPL version 3.0.

About

A simple 200 LOC kernel driver that displays a bitmap after a BSOD.

Topics

Resources

License

Stars

Watchers

Forks

Languages