Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
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.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2016-5195 — my personal POC of CVE-2016-5195(dirtyCOW) | Kitploit
Tools/GitHubGitHub/arttnba3/cve-2016-5195
Privilege EscalationVulnerability AnalysisExploitationLearning & EducationBinary Exploitation
GitHubarttnba3/cve-2016-5195

CVE-2016-5195

my personal POC of CVE-2016-5195(dirtyCOW)

View Repository
31525 years agoNot yet reviewed
Share

CVE-2016-5195

my personal POC and EXPLOIT of CVE-2016-5195 (dirty COW)

Usage

POC: write files arbitrarily

Just a simply POC of this CVE, compile the file poc.c as follow:

$ gcc poc.c -o poc -static -lpthread

You shall run it as follow:

./poc destination_file fake_file

You shall make sure the destination file is at least readable. The content of the destination file will be overwrite by the one of the fake, if failed, just try more times until it succeed.

ONLY the content in the length of the original file will be write

EXPLOIT: GET THE ROOT

I. generate a new ROOT user

Compile the file root_newuser.c as follow:

$ gcc root_newuser.c -o dirty -static -lpthread -lcrypt

Then run it as follow:

$ ./dirty new_username new_password

Type your new username and a password, it'll generate a new user WITH ROOT in the file /etc/passwd, check the first line of the file to see if it's successful and login with your new username and new password, then JUST ENJOY THE POWER OF THE ROOT

II. overwrite SUID application to provide a ROOT SHELL

Compile the file root_suid.c as follow:

$ gcc root_suid.c -o dirty -static -lpthread

Then you can run it simply without any extra arguments. Check if the /usr/bin/passwd get changed(sha256sum may be useful) and then run it. Then IT COMES TO THE TIME OF THE ROOT!

Analyzation of the CVE-2016-5195

You can visit my blog for more information about this CVE

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    1.1k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    628
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    413
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    366
  • 5

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    329
  • 6

    Aliens_eye

    arxhr007/aliens_eye

    AI powered OSINT engine to discover and map 7,700+ social media identities across the web

    287

Explore all tools

Browse our collection of tools

View all tools →