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