
Reproduction of CVE-2016-5195 (Dirty COW) Linux local privilege escalation exploit. Provides a ready-to-compile C source and step-by-step execution guide for educational testing.
Dirty Cow Linux Local Privilege Escalation Vulnerability Reproduction (CVE-2016-5195)
*0、 Use the command uname -a to check the Linux kernel information
*1、 Download the EXP to local/server
*2、 Use the command gcc -pthread dirty.c -o dirty -lcrypt to compile dirty.c, generating an executable file named dirty
*3、 Run ./dirty pass to escalate privileges, where pass is the password you set
Reference link: https://www.jianshu.com/p/df72d1ee1e3e
http://ftp.gnu.org/gnu/gcc/gcc-7.2.0/gcc-7.2.0.tar.gz Download and install gcc.