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
dirtycow — Dirty Cow exploit - CVE-2016-5195 | Kitploit
Tools/GitHubGitHub/ramahmdr/dirtycow
Privilege EscalationVulnerability AnalysisExploitationPenetration TestingRed TeamingBinary Exploitation
GitHubramahmdr/dirtycow

dirtycow

Dirty Cow exploit - CVE-2016-5195

View Repository
17 months 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

✅ Requirements / Affected Kernel Version

Dirty COW adalah Local Privilege Escalation (LPE) di Linux kernel yang dikenal sebagai CVE-2016-5195. :contentReference[oaicite:0]{index=0}

🎯 Vulnerable Kernel

Secara umum, Dirty COW berdampak pada Linux kernel 2.x sampai 4.x sebelum 4.8.3. :contentReference[oaicite:1]{index=1}

Beberapa distro sudah backport patch, jadi versi kernel kelihatan “lama” tapi bisa saja sudah aman.

✅ Fixed Versions (Upstream)

Dirty COW sudah dipatch pada kernel berikut (dan yang lebih baru):

  • 4.8.3
  • 4.7.9
  • 4.4.26 :contentReference[oaicite:2]{index=2}

🔎 Quick Check (Target Side)

Cek versi kernel target:

root@kitploit:~
uname -r

# dirtycow

This exploit uses the pokemon exploit of the dirtycow vulnerability as a base and automatically generates a new passwd line.
The user will be prompted for the new password when the binary is run.
The original /etc/passwd file is then backed up to /tmp/passwd.bak and overwrites the root account with the generated line.
After running the exploit you should be able to login with the newly created user.

To use this exploit modify the user values according to your needs.

The default user being created is `toor`.

Original exploit (dirtycow's ptrace_pokedata "pokemon" method):
https://github.com/dirtycow/dirtycow.github.io/blob/master/pokemon.c

Compile with:

```bash
gcc -pthread dirty.c -o dirty -lcrypt

Then run the newly create binary by either doing:

root@kitploit:~
./dirty

or

root@kitploit:~
 ./dirty my-new-password

Afterwards, you can either su toor or ssh toor@...

DON'T FORGET TO RESTORE YOUR /etc/passwd AFTER RUNNING THE EXPLOIT!

root@kitploit:~
mv /tmp/passwd.bak /etc/passwd

Exploit adopted by Christian "firefart" Mehlmauer

https://firefart.at

Download Tool