Fork bombs are recursive scripts that infinitely call themselves and push a system to it’s max until it ends up freezing or crashing. Creating a fork bomb script for Linux is extremely simple. Create a file called “myscript.sh” and insert the following two lines.
#!/bin/bash
:(){ :|:& };:
Then save this file and chmod it so that it’s executable “chmod a+x myfile.sh”. Now you can run your script by typing “./myfile.sh”. The the system you run it on will grind to a halt and completely freeze within seconds.
Please use this knowledge responsibly.
--
Posted By Conrad Sykes to
The Computer Kid at 5/16/2013 01:50:00 PM