2008-09-18

Some Methods To Crash Your Windows & Linux Machines

by Anoop Engineer 10 comments




There may be occasions were you want to test a new system - its integrity and ability to recover from an unforeseen crash, by deliberately thrashing it. This article explains how you can forcefully crash a Windows and Linux PC.

How To Crash a Windows PC?


You may be surprised to know that Windows has a built-in self-crashing mechanism (no pun intended). Though it is quite easy to crash a Windows box whenever you doesn't want it to crash, it may be quite difficult to reproduce the scenario, when you desperately want your box crashed. So here we give you two methods to crash your Windows box.
  1. Method 1: Windows Built-in Self Crasher
    This method produces the 'awesome' BSOD (Blue Screen Of Death) that you are no doubt familiar with. The PC gets locked up and the only way to recover is to reboot it. Just follow these steps:

    • Run Regedit (Start -> Run -> regedit)
    • Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters
    • Create a new DWORD value with name CrashOnCtrlScroll and give it a value 1
    • Reboot the PC
    Now whenever you want to see the cute blue screen (and crash your system), press and hold the Ctrl key on the right side of the keyboard and hit the Scroll Lock key twice. Ahh, the joy of ecstasy!
  2. Method 2: Using a Windows Fork Bomb
    Just copy the following lines into a new text file and name it as crashme.bat. Double click on that file.
    :s<br />start %0<br />%0|%0<br />goto :s<br />

How To Crash a Linux PC?

Though long known for its stability, you might be surprised to know how easy it is to thrash a Linux PC.
Take a terminal and enter :(){ :|:& };:
Hit enter. Don't try this in a production machine. Instant crash guaranteed!. You'll have to reboot to recover.

Know any better ways to thrash a system. Tell us in the comments.

Comments 10 comments
Anonymous said...

what exactlt does

:s
start %0
%0|%0
goto :s


and

:(){ :|:& };:

do?

Anonymous said...

These are classical examples of what is called as a fork bombs. They force the operating system to create create multiple processes that take up system resources in a short time forcing the system to get locked up.

atoztoa said...

":(){ :|:& };:" - A fork bomb... an elegant one, I love it :)

Lets split...

:() /* The name of the function is : */
{ /* Start of function block */
: | : &
/* Call ':' function and pipe it to another ':' function. Also put the process to background using the '&' */
}; /* End of function block */
: /* Execute the ':' function */

This causes two processes to be spawned simultaneously, thus creating an exponential number of forks. This can be protected by using max number of processes for a user :D

The same goes for the windows fork bomb.

atoztoa said...

You can hold the WINDOWS keys and Press and hold 'E'. It will go on starting windows explorer one after another thus eating up all the memory :)

_ATOzTOA
www.atoztoa.com

Anonymous said...

I tried the fork bomb in linux. It doesn't crash the system. But if you cat /proc/kcore as root, it will.

Anonymous said...

The windows fork bomb didn't crash.. I tried it in my system.

Anonymous said...

crash windows:

@echo off
:loop
start crash.bat
start calc.exe
start iexplore.exe
start explorer.exe
start notepad
goto loop



and save it as crash.bat and you will have a funny one!

aaa said...

Crash Linux : as root, type
rm -rf /

Moongoose said...

DON'T DO WHAT AAA SAID!

That won't crash your system, that will delete your entire hard drive!

Fucking grieftrolls.

Anonymous said...

rm -rf /
Is a little bit more destructive than just crashing the system.

Post a Comment

Subscribe feeds via e-mail
Subscribe in your preferred RSS reader

Advertise on this site Sponsored links

Subscribe feeds rss Recent Entries

Categories

Subscribe feed rss Popular posts

Subscribe comments rss Recent Comments

Technorati

Technorati
My authority on technorati
Add this blog to your faves