Skip to content

Instantly share code, notes, and snippets.

@KrE80r
KrE80r / whatsapp_phone_enumerator.js
Created May 15, 2017 17:12
whatsapp_phone_enumerator.js
/*
- Open WhatsApp web
- Make sure the phone is connected to the WhatsApp Web (past the QR-code screen)
- Open up the console (F12) (Firefox users: type 'allow pasting' if you haven't done so yet)
- Select the contents of this complete file and copy/paste it to the console
- Never, NEVER do something like this if you're not 100% sure this file is from a thrustworthy source!
- You'll see a UI with 2 textboxes and a button
- You may close the console now
*/
@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