Implement DirtyFrag and DirtyPipe exploit modules#132
Merged
Conversation
Added modules for DirtyFrag and DirtyPipe privilege escalation exploits, including upload functionality and error handling for Unix environments.
Owner
|
Good job @halilkirazkaya ! |
Owner
|
@halilkirazkaya regarding https://github.com/v4bel/dirtyfrag I will modify the module to upload only the .c file. is there any problem with that? |
Contributor
Author
No, there is no problem with that; it might even be better. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR adds two new Privilege Escalation modules to Penelope's module system, following the same upload pattern as existing modules (e.g.,
ligolo,traitor,ghostpack).New Modules
dirtyfrag— Universal Linux LPEdirtyfrag/folder on the target.rxrpc.ko), achieving reliable root on virtually all major Linux distributions (Ubuntu, RHEL, Fedora, openSUSE, CentOS Stream, AlmaLinux, etc.).dirtypipe— Linux Pipe Privilege Escalationdirtypipe/folder on the target, includingexploit-1.c,exploit-2.c, andcompile.sh.Usage
After upload, compile on the target with:
Testing
Both modules were tested against the TryHackMe — Dirty Pipe room, which provides a vulnerable Linux environment ideal for verifying CVE-2022-0847. Notably, the same machine is also susceptible to the DirtyFrag vulnerability chain, making it a convenient single target for testing both modules end-to-end.