while(1) {
fork();
}
this 2 line code is capable of breaking almost any /* if not all */ unix
system. now how these smilies r working as fork bomb. well, i dont
understand it well cause im not that much good in bash scripting. i
understand this :
/* correct me if im wrong. i really want to clear my conception */
from bash man page
: [arguments]
No effect; the command does nothing beyond expanding
arguments
and performing any specified redirections
":(){ :|:& };:" --- can we consider : as a function here? that is replace :
with f. so it become
f(){ f|f& };f
this also works as fork bomb. so we r just calling a function that runs its
copy in background, which further create more copy, which further ......
im not sure whether this explanation is right. i have already said im not
that much good in bash and i really want to hear more concrete explanation.
On Nov 29, 2007 10:47 PM, Zico <[EMAIL PROTECTED]> wrote:
> ---------- Forwarded message ----------
> From: Vishal Thanki <[EMAIL PROTECTED] <v_thanki2002%40yahoo.com>>
> Date: Nov 29, 2007 8:53 PM
> Subject: forkbomb
>
> Hi to All,
>
> Has anyone tried following command on command prompt??? Though it looks
> like
> a collection of smiley, its a fork bomb and will keep on creating
> processes
> in the system and eventually let the machine die.. One needs to reboot the
> system after this command ;) But i seriously don't know what it does
> internally.. Has anyone any explanation ???
> ":(){ :|:& };:"
>
> Regards,
>
> Vishal
>
> --
> Best,
> Z
>
> [Non-text portions of this message have been removed]
>
>
>
[Non-text portions of this message have been removed]