Re: defend from -> :() { :&:; } ;:
- From: Matt <datahead4@xxxxxxxxx>
- Date: Mon, 22 Oct 2007 16:29:51 -0500
On 10/22/07, Martin Tournoij <carpetsmoker@xxxxxxxxx> wrote:
On Sun 21 Oct 2007 12:10, 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?
Wow,, my machine just crashed :-/
Does in this work on other OS's as well (ie. GNU/Linux)? Or just
(Free?)BSD? I really don't feel like crashing another machine right
now...
Only works in sh, not in csh.
Anyway, this seems to be security/stability issue, maybe a PR is in
order?
Regards,
Martin Tournoij
I'm not a sh or bash syntax expert, but isn't this a standard "fork
bomb" type command? If so, it should be possible to mitigate it with
sensible login tunings set in login.conf (in this particular case, I
think "maxprocesses" is the one to focus on).
Executing this command on my workstation does not result in any
(noticeable) bad side effects under sh or bash login shells - just
notifications of "Cannot fork: Resource temporarily unavailable" as
the max process limit is hit.
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"
- References:
- defend from -> :() { :&:; } ;:
- From: Danielisz Laszlo
- Re: defend from -> :() { :&:; } ;:
- From: Martin Tournoij
- defend from -> :() { :&:; } ;:
- Prev by Date: Re: reverse DNS resolution...
- Next by Date: Support for SBLive 5.1
- Previous by thread: Re: defend from -> :() { :&:; } ;:
- Next by thread: Re: defend from -> :() { :&:; } ;:
- Index(es):