#!/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