
Exploit for CVE-2021-4034 (pkexec) targeting CentOS 8, allowing custom command execution via modified pwnkit-dry-run.c. Includes compilation and deployment instructions.
CVE-2021-4034 version available for CentOS 8
Based on modifications from https://github.com/berdav/CVE-2021-4034/tree/main/dry-run
Modify the system function in pwnkit-dry-run.c to execute custom commands
(by default it adds a r00t user with password XHSZWCPU6Nvobe)
Run make to compile
Upload to the target machine and run