Re: [Full-disclosure] Linux + bash and a silver fork



On 8/27/07, Niko Lilja <niko.lilja@xxxxxxxxx> wrote:
Well, as has been said when you realize the truth that there is no spoon,
but instead there'll be a
bunch of forks instead, at least in linux on bash shell, tested ubuntu and
RHEL this far.

By throwing a nice piece of line code as a command in bash shell (normal
user) you can pretty much
crash the whole server cause denial of service by giving a command in bash:

:() { :&:; } ;:

This is just a fork bomb, set ulimit -u to something sane.
Also see http://en.wikipedia.org/wiki/Fork_bomb

Almost as the ascii would be smiling..

- N


_______________________________________________
Full-Disclosure - We believe in it.
Charter:
http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/



--
Thomas Coppi

_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/



Relevant Pages

  • Re: Starting background process in ssh session
    ... nohup $command ... bash shell do this: ... #exit the subshell ... > to have to kill the ssh process on my end to terminate the connection. ...
    (Debian-User)
  • Re: error output
    ... Yes, you were right, it is 'csh'. ... >is to install the bash shell via inst command. ...
    (comp.sys.sgi.misc)
  • Re: .bashrc aliases
    ... one other window open to the bash shell on OSX. ... I can't seem to get the required punctuation to work right. ... The above command shows the correct quoting. ... The following echo command might give you a clue: ...
    (comp.unix.shell)
  • Re: auto start program
    ... user's bash shell is run. ... If you want to run the command only once per ... or ~/.xsession, or KDE has a per-user Autostart folder ... The equivalent to KDE's Autostart directory is a file, in GNOME - viz. ...
    (Ubuntu)
  • newgrp (or equivalent) in .bashrc
    ... It needs to be in the if to prevent infinite looping because newgrp ... can't figure out how to make a similar change in my .bashrc. ... starts a new bash shell in interactive mode with no command line, ...
    (comp.unix.questions)