项目说明
!Dirty Pipe
CExploits
A collection of exploits and documentation for penetration testers and red teamers that can be used to aid the exploitation of the Linux Dirty Pipe .
About The
Dirty Pipe (C) is a local pri escalation in the Linux kernel that could potentially allow an unpri user to do the following: - Modify/o arbitrary read-only files like /etc/passwd.
- Obtain an elevated shell.
Affected
Linux kernel newer than 5.8 are affected.So far the has been patched in the following Linux kernel : - 5.16.11
- 5.15.25
- 5.10.102
You can learn more about the here: DirtyPipe Scanner
If you are not sure if a target system is , use this really cool bash script de by .DirtyPipe Checker: Compiling the exploit
An automated compiler bash script has been provided to you to automate the compilation of both exploits.In order to compile the exploit succesfully, you will need to have GCC installed.After installing GCC, you can run the 'compile.sh" script as follows:Exploit-1 - Modifying/o read only files
This repo contains 2 exploits, the 'exploit-1.c' exploit can be used to modify or o arbitrary read only files.This exploit is a proof of concept that was de by Max Kellermann and has been modified to change the root password in the /etc/passwd file, consequently pro you with access to an elevated shell.Running the exploit binary
The exploit code has already been configured to replace the root password with the password "piped" and will take a backup of the /etc/passwd file under /tmp/passwd.bak. Furthermore, the exploit will also provide you with an elevated root shell and will restore the original passwd file when done.Exploit-2 - Hijacking SUID binaries
This exploit can be used to inject and o data in read-only SUID process memory that run as root.Finding SUID binaries
Running the exploit binary
Important Note
I do not claim credit/ownership/disclosure of the and all corresponding exploits hosted in this GitHub repo.All the credit goes to the awesome Max Kellerman, you can check out the official disclosure here: Credits
项目信息
开发语言:C
Star 数:734
技术要点
该项目属于漏洞知识库方向的开源资源,代码结构清晰,适合安全研究人员学习参考。项目围绕A collection of exploits and documentation that can be used to exploit the Linux Dirty Pipe vulnerability.展开,提供了可运行的实现,对理解相关安全机制、工具原理与攻防技术具有较高的研究价值。
从技术实现角度看,此类项目的核心在于对底层原理的深入理解与工程化落地。开发者在研究过程中可以结合官方文档与社区讨论,梳理项目的初始化流程、核心模块职责与数据流转,逐步掌握其中的技术细节与设计思路。
使用与学习建议
1. 下载源码压缩包,解压到本地环境。
2. 根据项目类型准备对应的运行环境与依赖。
3. 按照 README 中的步骤完成配置与部署。
4. 在隔离的测试环境中运行验证,避免影响生产系统。
免责声明
本资源来源于开源社区,仅供安全研究、技术学习与合法授权范围内的攻防演练使用,请勿用于任何非法或侵害他人权益的用途。使用本项目产生的一切后果由使用者自行承担。