variousscripts/controlserverwebpage/usr/bin/phpreboot.c

11 lines
175 B
C

#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
int main() {
setuid(0);
char *command = "/sbin/reboot";
execl(command, command, NULL);
return 0;
}