
Proof-of-concept exploit for CVE-2021-4034 (PwnKit), a local privilege escalation vulnerability in polkit's pkexec. Compiles and runs a C payload to gain root access.
POC for pwnkit vulnerability discovered by Qualys.
Compile & execute:
gcc lpe.c -o lpe; ./lpe
Creates the following directory/file structure:
/tmp
├── GCONV_PATH=.
│ └── test
├── payload.c
├── payload.so
├── test
│ └── gconv-modules