Post

(Kernel Security) level 4

(Kernel Security) level 4

Information

  • category: pwn

Description

Ease into kernel exploitation with another crackme level and learn how kernel devices communicate.

Explit

I think I should try to get Hacker rank on HTB U_U. When I finish this module I’ll try why not O_O.

1
2
3
4
5
6
7
8
9
10
11
12
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <unistd.h>
int main() {
  int fd = open("/proc/pwncollege", O_RDWR);
  printf("UID BEFORE: %d\n", getuid());
  ioctl(fd, 1337, "jwerkvvpqgkxvazf");
  printf("UID AFTER: %d", getuid());
  system("cat /flag");
}
This post is licensed under CC BY 4.0 by the author.