-
Notifications
You must be signed in to change notification settings - Fork 942
PoCs
| Link | Usage | Description | Family |
|---|---|---|---|---|---|---|
| dirtyc0w.c | ./dirtyc0w file content
| Read-only write | /proc/self/mem |
| cowroot.c | ./cowroot
| SUID-based root | /proc/self/mem |
| dirtycow-mem.c | ./dirtycow-mem
| libc-based root | /proc/self/mem |
| pokemon.c | ./d file content
| Read-only write | PTRACE_POKEDATA |
| dirtycow.cr | dirtycow --target --string --offset
| Read-only write | /proc/self/mem |
| dirtyc0w.c | ./dirtycow file content
| Read-only write | /proc/self/mem |
| dirtycow.rb | use exploit/linux/local/dirtycow
and run
| SUID-based root | /proc/self/mem |
| 0xdeadbeef.c | ./0xdeadbeef
| vDSO-based root | PTRACE_POKEDATA |
| naughtyc0w.c | ./c0w suid
| SUID-based root | /proc/self/mem |
| c0w.c | ./c0w
| SUID-based root | PTRACE_POKEDATA|
| dirty_pass[...].c | ./dirty_passwd_adjust_cow
| /etc/passwd based root | /proc/self/mem |
| mucow.c | ./mucow destination < payload.exe
| Read-only write (multi page) | PTRACE_POKEDATA
-
https://github.com/dirtycow/dirtycow.github.io/blob/master/dirtyc0w.c
- Allows user to write on files meant to be read only.
-
https://gist.github.com/rverton/e9d4ff65d703a9084e85fa9df083c679
- Gives the user root by overwriting
/usr/bin/passwd
or a suid binary.
- Gives the user root by overwriting
-
https://gist.github.com/scumjr/17d91f20f73157c722ba2aea702985d2
- Gives the user root by patching libc's getuid call and invoking
su
.
- Gives the user root by patching libc's getuid call and invoking
-
https://github.com/dirtycow/dirtycow.github.io/blob/master/pokemon.c
- Allows user to write on files meant to be read only.
-
https://github.com/xlucas/dirtycow.cr
- Allows a user to write on files meant to be read only.
-
https://github.com/timwr/CVE-2016-5195
- Allows user to write on files meant to be read only (android).
-
https://github.com/rapid7/metasploit-framework/pull/7476
- Metasploit module based on the
cowroot
PoC.
- Metasploit module based on the
-
https://github.com/scumjr/dirtycow-vdso
- Gives the user root by patching the vDSO escapes containers/SELinux doesn't need suid.
-
https://gist.github.com/mak/c36136ccdbebf5ecfefd80c0f2ed6747
- Gives the user root by injecting shellcode into a SUID file.
-
https://gist.github.com/KrE80r/42f8629577db95782d5e4f609f437a54
- Gives the user root by injecting shellcode into a SUID file using PTRACE_POKEDATA .
-
https://gist.github.com/ngaro/05e084ca638340723b309cd304be77b2
- Gives the user root by replacing /etc/passwd
-
https://gist.github.com/chriscz/f1aca56cf15cfb7793db0141c15718cd
- Allows user to write on files meant to be read only.
- Supports writing to multiple pages, not just the first