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