Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am scumjr on github.
  • I am scumjr (https://keybase.io/scumjr) on keybase.
  • I have a public key whose fingerprint is 59DD 3702 6EA5 D195 B4B9 8362 3A3E CFD7 40B0 E8D8

To claim this, I am signing this object:

@scumjr
scumjr / otr_preload.c
Last active May 16, 2017 10:54
Fix for Ubuntu Xenial irssi-plugin-otr package
/*
* The package irssi-plugin-otr provides a library file (libotr.so) which is
* incorrectly compiled on Ubuntu 16.04. There's an open issue
* (https://bugs.launchpad.net/ubuntu/+source/irssi-plugin-otr/+bug/1579548).
*
* This is a dirty workaround.
* Usage: LD_PRELOAD=$(pwd)/otr_preload.so irssi
*
* Makefile:
/*
* 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