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 365 times since Tue Mar 15 13:18:14 2005 GMT