Skip to content

Instantly share code, notes, and snippets.

View ozzyjohnson's full-sized avatar

Ozzy Johnson ozzyjohnson

View GitHub Profile
@ozzyjohnson
ozzyjohnson / gist:1ea196f056ecdf30708a
Created November 13, 2014 18:40
Remove untagged docker images.
sudo docker rmi $(sudo docker images | grep '^<none>' | awk '{print $3}')
@ozzyjohnson
ozzyjohnson / gist:23f5bb20146432305514
Created November 10, 2014 04:47
Segfaulting build of Bash for AFL.
apt-get update && apt-get -y install bison \
&& wget http://ftp.gnu.org/gnu/bash/bash-4.2.tar.gz \
&& tar xzvf bash-4.2.tar.gz \
&& wget -r -l 1 http://ftp.gnu.org/gnu/bash/bash-4.2-patches/ \
&& rm ftp.gnu.org/gnu/bash/bash-4.2-patches/*.sig \
&& rm ftp.gnu.org/gnu/bash/bash-4.2-patches/index* \
&& cd bash-4.2 \
&& for i in ../ftp.gnu.org/gnu/bash/bash-4.2-patches/*; do patch -p0 < $i; done \
&& CC=/usr/local/bin/afl-gcc ./configure
&& make \