Skip to content

Instantly share code, notes, and snippets.

View yupyupp's full-sized avatar

Stephen Haffner yupyupp

View GitHub Profile
@KrE80r
KrE80r / c0w.c
Created October 23, 2016 15:19
PTRACE_POKEDATA variant of CVE-2016-5195
/*
* A PTRACE_POKEDATA variant of CVE-2016-5195
* should work on RHEL 5 & 6
*
* (un)comment correct payload (x86 or x64)!
* $ gcc -pthread c0w.c -o c0w
* $ ./c0w
* DirtyCow root privilege escalation
* Backing up /usr/bin/passwd.. to /tmp/bak
* mmap fa65a000
@pi3ch
pi3ch / muttattach.sh
Created May 14, 2012 05:59
Access mutt attachment remotely
#!/bin/sh
# muttattch.sh
# This script handle all the attachment type in mutt and forward to
# a netcat on port 8083 to view on the remote/local system
# in mutt open attachment and in remote system open localhost.
TEMP="/tmp/muttattch"
PORT=8083
rm -f $TEMP
mkfifo --mode=600 $TEMP