CCL Home Page
Up Directory CCL killme.c.txt
#include 
#include 
#include 

int main (int argc, char *argv[]) {
  int i;
  char killme[1000]="kill -9 ";
  for(i = 1; i < argc; i++) {
    strcat(killme, argv[i]);
    strcat(killme, " ");
  }


  fprintf(stderr, "Command: %s\n", killme);

  /* in this case webrun uid and gid is 501 */
  setreuid(501,501);
  setregid(501,501);

  system(killme);

  exit(0);

}


Modified: Thu Jan 25 05:03:18 2001 GMT
Page accessed 3906 times since Tue Feb 4 15:52:12 2003 GMT