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
kernel-exploit-dirtycow — Lab — Privilege Escalation via Dirty Cow CVE-2016-5195 | 4Geeks Academy | Kitploit
Tools/GitHubGitHub/gonzabot/kernel-exploit-dirtycow
Privilege EscalationVulnerability AnalysisExploitationCTFLearning & EducationBinary ExploitationLabs & Practice
GitHubgonzabot/kernel-exploit-dirtycow

kernel-exploit-dirtycow

Lab — Privilege Escalation via Dirty Cow CVE-2016-5195 | 4Geeks Academy

View Repository
1 month 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

Kernel Exploit — Dirty Cow (CVE-2016-5195)

Privilege escalation lab using the Dirty Cow vulnerability, carried out as part of the cybersecurity specialization at 4Geeks Academy.

Description

Dirty Cow is a race condition in the Linux kernel's memory subsystem (CVE-2016-5195) that allows an unprivileged local user to gain write access to read-only memory areas, including /etc/passwd. This makes it possible to escalate directly to root without administrative credentials.

Environment

RoleSystemIP
AttackerKali Linux10.0.2.8
VictimUbuntu Server 16.04.1 — kernel 4.4.0-31-generic10.0.2.9

Lab Objectives

  • Verify the kernel version and identify the vulnerability
  • Compile the exploit in a Docker environment compatible with the victim
  • Transfer and execute the binary via SCP
  • Escalate from user student to root
  • Capture the flag in /root/flag.txt

Result

Captured flag: 4GEEKS{Y0u_G0t_R00t}

Exploit used

Exploit-DB #40847 — Linux Kernel /proc/self/mem Race Condition Privilege Escalation (/etc/passwd Method)
https://www.exploit-db.com/exploits/40847

Repository contents

FileDescription
Informe_DirtyCow_CVE-2016-5195_GonzaloRodriguez.docxComplete technical report with evidence

Legal notice

This lab was conducted in a controlled environment for educational purposes only. Exploitation of systems without the express authorization of the owner is illegal.

Author

Gonzalo Rodríguez
LinkedIn | GitHub

Download Tool