Skip to content

# Creating a bash fork bomb

Logged into a Unix machine? Does “ulimit -a” say that the max number of user processes is unlimited? Then type the following to crash the machine (provided it uses bash, or another shell with compatible syntax):

:(){ :|:& };:

What does it do? It creates a function named “:”, which calles itself, and sends the output to itself.

You’d better find out how to protect your machine if it also states that the max number of user processes is unlimited. Even a hight limit can be dangerous, such as 15000.

## 1 Comment( Add comment / trackback )

1. Pingback from Bookmarks about Bash
On Sep 03, 2008 at 05:00

[…] – bookmarked by 6 members originally found by Jamespm666 on 2008-08-12 Creating a bash fork bomb http://blog.bigsmoke.us/2008/07/10/creating-a-bash-fork-bomb – bookmarked by 2 members originally […]