PDA

View Full Version : What does id the evil command?



bobmatino17
April 27th, 2009, 09:44 PM
OK, I know that <snip> (Do not us that command, it is bad.) freezes your computer, forcing you to do a hard reset. But exactly what is it? I think that : is a shorthand for bash and when i just typed in :() it lead me to another command line. So what is it?

stupid smilies. the frowns are a colon ":" then open parenthesis "(", the confused ones are a colon then a pipe "|"

Namtabmai
April 27th, 2009, 09:45 PM
*edit* removed due to forum guidelines *edit*

Actually, why doesn't Ubuntu have the ulimits set to prevent this?

sisco311
April 27th, 2009, 09:55 PM
: is the name of the function.

Here is more human readable code:


bomb() {
echo \<removed\> # :)
};
bomb

DON'T RUN THIS CODE!!!

http://www.cyberciti.biz/faq/understanding-bash-fork-bomb/

MaxIBoy
April 27th, 2009, 10:30 PM
It's a fork bomb. It constantly spawns child processes, then these spawn their own child processes, and so on, until you run out of room to keep track of them all. Every time you manage to kill some, the others instantly spawn new ones before you can do anything.

skymera
April 27th, 2009, 10:31 PM
I've run it in the past :)
Was interesting

MaxIBoy
April 27th, 2009, 10:34 PM
I've come up with a more-potent one before, using a bash quine and the "yes" command.

ddrichardson
April 27th, 2009, 10:35 PM
http://en.wikipedia.org/wiki/Fork_bomb

That's assuming it's intentional, I've worked on projects where there have been logical errors with the same result.

cariboo
April 27th, 2009, 11:07 PM
This thread doesn't look like it is going anywhere. If you need to discuss fork bombs, do it in the Security Discussion (http://ubuntuforums.org/forumdisplay.php?f=338) forum.

This thread is closed