Lazycoder

16Jun/042

You too can crash Windows

Crashing the Linux Kernel

Stefano posts a program that will cause Linux kernal 2.4.x and 2.6.x version to lock up when run. WOW, that’s amazing. A program that will cause the machine to lock up. A C program at that, that’s amazing.

Then he says.

“obviously… as usual, when a big fall is about a Linux system, the rumours are not big… can you imagine the big clamour if this fall was discovered on a Windows kernel?”

Wonder no longer Stefano.


#include <stdio .h>
void main()
{
	for(;;)
	{
		printf("Hung up\tbbbbbb");
	}
}
</stdio>

There you go, now you can cause a BSOD in every Windows version up to Windows XP. Widnows XP just reboots when you run it. It hasn’t been tested on Windows 2003 yet that I know of.

edit: WordPress keep sanitizing my post and stripping out all the important points. I’ve hand coded the HTML codes for the code now.

Filed under: General Leave a comment
  • http://www.schanda.co.za/blog Senkwe

    Ummm, nope, Windows 2000 does NOT crash and runs that code cnippet perfectly over here.

  • http://www.lazycoder.com Scott

    Absolutely correct Senkwe, WordPress kept sanitizing out the slashes in the part of the code that actually crashes windows. I’ve encoded them now so you can crash away. :)

    It’s not a new code snippet, it’s been around for a long time and it’s not all that interesting. OS theorists can debate whether or not the OS should crash when it happens, but the bottom line is you can write code on any platform that will cause it to crash.