Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Oct 2007 20:31:58 -0400
From:      Mike Jeays <mike.jeays@rogers.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: defend from -> :() { :&:; } ;:
Message-ID:  <200710222031.58924.mike.jeays@rogers.com>
In-Reply-To: <471D00EB.2030903@lazlarlyricon.com>
References:  <123275.56819.qm@web30812.mail.mud.yahoo.com> <471D00EB.2030903@lazlarlyricon.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On October 22, 2007 03:58:35 pm Rolf G Nielsen wrote:
> Danielisz Laszlo wrote:
> > Please do not try to execute this: :() { :&:; } ;: on your BSD machine.
> > I ask all who already tried it how to defend from this?
> >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> > _______________________________________________
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to
> > "freebsd-questions-unsubscribe@freebsd.org"
>
> What does it do?

It is easier to understand when you replace the ":" by a more conventional 
subroutine name.

myproc () {
  myproc &
  myproc
}

myproc

It recursively generates useless processes that clog up the machine. Mine 
ground to a halt and froze after a few seconds.




-- 
Mike Jeays
http://www.jeays.ca



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200710222031.58924.mike.jeays>