Skip to content

Instantly share code, notes, and snippets.

View crogersdev's full-sized avatar
🎯
Focusing

Chris Rogers crogersdev

🎯
Focusing
  • Washington DC
View GitHub Profile
@crogersdev
crogersdev / parse_api.py
Created March 1, 2018 15:53
Parse Flask API file and make documentation (WIP)
#!/usr/bin/env python
import argparse
from codecs import open
import re
parser = argparse.ArgumentParser(description='Read API file, parse out web routes and input parameters, methods, etc... and generate a doc file')
parser.add_argument('--file', dest='source_api_file', help='API Source file', required=True)
input_args = parser.parse_args()
@crogersdev
crogersdev / cowroot.c
Created November 27, 2017 02:26 — 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