Skip to content

Instantly share code, notes, and snippets.

View rm1984's full-sized avatar
💭
0xDEADBEEF

Riccardo Mollo rm1984

💭
0xDEADBEEF
View GitHub Profile
@rm1984
rm1984 / 47169.c
Created February 9, 2021 15:18
47169.c
// A proof-of-concept local root exploit for CVE-2017-1000112.
// Includes KASLR and SMEP bypasses. No SMAP bypass.
// Tested on:
// - Ubuntu trusty 4.4.0 kernels
// - Ubuntu xenial 4.4.0 and 4.8.0 kernels
// - Linux Mint rosa 4.4.0 kernels
// - Linux Mint sarah 4.8.0 kernels
// - Zorin OS 12.1 4.4.0-39 kernel
//
// Usage:
@rm1984
rm1984 / check_uppercase_command.sh
Created July 8, 2017 08:37
Checks if a dumb user writes a command in uppercase
export PROMPT_COMMAND='echo "$(history 1 | cut -c 8-)" >> /tmp/.cmds ; FULLCMD=$(tail -1 /tmp/.cmds) ; FIRSTCMD=$(echo "$FULLCMD" | cut -d" " -f1) ; if [ -z $(echo $FIRSTCMD | tr -d "[:upper:]") ]; echo "*** WHY DAFUQ ARE YOU SHOUTING?!? ***" ; fi'
@rm1984
rm1984 / keybase.md
Created March 3, 2017 19:37
keybase.md

Keybase proof

I hereby claim:

  • I am rm1984 on github.
  • I am rm1984 (https://keybase.io/rm1984) on keybase.
  • I have a public key whose fingerprint is 6134 F37D A2C2 9A57 68A7 34B3 775E EE4C 8AF6 4A04

To claim this, I am signing this object: