variousscripts/controlserverwebpage/usr/bin/phphalt.c

11 lines
177 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/shutdown";
execl(command, command, NULL);
return 0;
}