Skip to content

Instantly share code, notes, and snippets.

View vitorgv's full-sized avatar

Vitor Granzinoli Vellozo vitorgv

View GitHub Profile
@vitorgv
vitorgv / cowroot.c
Created April 3, 2018 17:15
cowroot tested on RHEL and working...
/*
* (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
SHELL=/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SCRIPT_PATH=$(pwd)
LOGFILENAME=$SCRIPT_PATH/$(basename -s .sh $0).log
exec 3>&2 # logging stream to STDERR
verbosity=5 # default to show warnings
silent_lvl=0
@vitorgv
vitorgv / hb-test.py
Created July 8, 2016 16:38 — forked from takeshixx/hb-test.py
OpenSSL heartbeat PoC with STARTTLS support.
#!/usr/bin/env python2
"""
Author: takeshix <takeshix@adversec.com>
PoC code for CVE-2014-0160. Original PoC by Jared Stafford (jspenguin@jspenguin.org).
Supportes all versions of TLS and has STARTTLS support for SMTP,POP3,IMAP,FTP and XMPP.
"""
import sys,struct,socket
from argparse import ArgumentParser
@vitorgv
vitorgv / gist:5834154
Created June 21, 2013 20:37
Configurando o Git para funcionar através de um Proxy
[core]
symlinks = false
autocrlf = true
[color]
diff = auto
status = auto
branch = auto
interactive = true
@vitorgv
vitorgv / HelloWorld.java
Created October 11, 2012 02:23
Just a simple "Hello World" in Java ...
public class HelloWorld {
public static void main(String ... args) {
System.out.println("Hello World!");
}
}