defend from -> :() { :&:; } ;:

Mike Jeays mike.jeays at rogers.com
Mon Oct 22 17:32:10 PDT 2007


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 at freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to
> > "freebsd-questions-unsubscribe at 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


More information about the freebsd-questions mailing list