Only 5 Characters are enough to Crash a System: Fork Bomb


A fork bomb for crashing system is a smallest writable virus as it contains on 5 Characters. Fork bombs count as wabbits: they typically do not spread as worms or viruses. 
The concept behind the fork bomb: the processes recursively fork until a denial of service or a crash occurs. Fork Bomb creates a large number of processes very quickly and break the limitation of processes that can run on a system. It’s dead simple: A program just replicate itself, which again replicate itself and so on until all resources are exhausted.

A fork bomb generally creates two instances at startup, further each of created processes creates two instances and so on…The processes recursively fork; this “forks” the processor and jamm it completely until a crash occurs. It use forks to do system crash, so its called Fork Bomb.

See, How to create it:

1. Fork Bomb for windows:
Write the following code in notepad and save it with bat extension say fork.bat

%0|%0

Once anyone will do double click on this bat file, his system will jamm.

2. Fork Bomb for linux/Unix:

:(){ :|:& };:

[Note: Be careful in using these scripts, i will not be responsible if you damage your system.]

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s