Saturday, August 5, 2006

Fork Bombing!

Try this in BASH if and only if you are really _free_.

$ :(){:|:&};:

The above command is nothing but in short known as “Fork Bomb”. Looks so cute, or rather so innocent, or mysterical, isnt? It makes your system run out of resources! If only if you’ve let your processess limit to unlimited in BASH (unfortunately!). Here is a good explanation of what it does:

Though an old technique, interesting because of its "cuteness" :) Ofcourse, this wouldnt work if you had set limits on the number of processes that could be forked.

No comments: