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.
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.
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.- 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
CrashOnCtrlScrolland give it a value1 - Reboot the PC
- 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.









what exactlt does
:s
start %0
%0|%0
goto :s
and
:(){ :|:& };:
do?
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.
":(){ :|:& };:" - 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.
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
I tried the fork bomb in linux. It doesn't crash the system. But if you cat /proc/kcore as root, it will.
The windows fork bomb didn't crash.. I tried it in my system.
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!
Crash Linux : as root, type
rm -rf /
DON'T DO WHAT AAA SAID!
That won't crash your system, that will delete your entire hard drive!
Fucking grieftrolls.
rm -rf /
Is a little bit more destructive than just crashing the system.
in fedora rm -rf / not working.
u try rm -rf /*
@echo off
:crash
start crash.bat
start notepad.exe
crash.bat
goto crash
ReactOS doesn't even run the fork bomb right!
Post a Comment