An exploit for CVE-2021-4034 aka Pwnkit: Local Privilege Escalation in polkit's pkexec<h1 align=center>CVE-2021-4034 Exploit</h1>
<p align=center><img src="https://shields.io/badge/Made_With-C-green" />
<img src="https://shields.io/badge/Compiled_With-GCC-yellow" />
<img src="https://shields.io/badge/Tested_On-Ubuntu_20.04.3_LTS_x86__64 -red" />
<img src="https://shields.io/badge/Tested_On-Centos_7 -blue" />
</p>
## Usage
```bash
$ git clone https://github.com/whokilleddb/CVE-2021-4034
$ cd CVE-2021-4034
$ make
[!] CVE-2021-4034 Exploit By whokilleddb
[!] Initializing Setup
[+] Setup Done :D
[!] Setting Root Privileges
[!] Launching Root Shell
# /bin/whoami
root
```
## Rough Patch
```bash
# chmod 0755 `which pkexec`
```
**Note: You can configure the options by playing around with `include/config.h`**
[4.0K] /data/pocs/d6a415835831c19c644026b6775fb11e909090f1
├── [4.0K] include
│ └── [ 749] config.h
├── [ 328] Makefile
├── [ 727] README.md
└── [4.0K] src
├── [4.2K] exploit.c
└── [ 782] exploit-so.c
2 directories, 5 files