#include <stdio.h> /* standard I/O library */
#include <string.h> /* standard library */
#include <fcntl.h> /* definition of symbols */
#include <sys/types.h>
#include <unistd.h>
/*---------------------------------------------------------------------------*/
/* */
/* H A U P T P R O G R A M M */
/* */
/* (from: Reinhard Drube <drube@ipp.mpg.de>) */
/*---------------------------------------------------------------------------*/
main(int argc,char *argv[])
{
(void) setuid((uid_t)0);
(void) seteuid((uid_t)0);
if (argc == 1) {
if(execl("/usr/bin/pkill",
"/usr/bin/pkill",
"-x",
"-u",
"0",
"vold",
NULL))
{
perror("execl"); exit(0);
}
else exit(0);
}
}
syntax highlighted by Code2HTML, v. 0.9.1