ctf-tools/binjitsu/install-root

21 lines
471 B
Bash
Executable file

#!/bin/bash -e
case "$DISTRI" in
"debian")
echo "Need pwntools compatible binutils from PPA"
exit 1
;;
"ubuntu")
apt-add-repository -y ppa:pwntools/binutils
apt-get update
apt-get -y install binutils-.*-linux-gnu libffi-dev libssl-dev
;;
"archlinux")
pacman -Syu --noconfirm --needed binutils openssl libffi
;;
*)
echo "Unknown distribution"
exit 1
;;
esac