variousscripts/controlserverwebpage/usr/bin/phpreboot.c

11 lines
175 B
C
Raw Normal View History

2019-08-05 13:07:57 +00:00
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
int main() {
setuid(0);
char *command = "/sbin/reboot";
execl(command, command, NULL);
return 0;
}