Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# Compress initramfs with the included statically linked exploit
out=$(echo $in | awk '{ print substr( $0, 1, length($0)-2 ) }')
gcc $in -static -o $out || exit 255
mv $out initramfs
pushd . && pushd initramfs
find . -print0 | cpio --null --format=newc -o 2>/dev/null | gzip -9 > ../initramfs.cpio.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment