ctf-tools/barf/install
Steven Van Acker 7144e756e5 fail hard on any error + verify that all scripts use bash -ex to fail
early on any error + anticipate that some tools can't be installed by
now, but we still want the test to return success to satisfy travis-ci
2017-02-16 22:40:17 +01:00

30 lines
624 B
Bash
Executable file

#!/bin/bash -ex
# it's z3!
ctf-tools-pip install https://github.com/zardus/z3/archive/pypy-and-setup.zip
set +e
source ${VIRTUALENVWRAPPER_SCRIPT}
workon ctftools
set -e
# pybfd can't be installed with pip
git clone --depth 1 https://github.com/Groundworkstech/pybfd
cd pybfd/
python setup.py install
cd ..
# install pyasmjit
git clone --depth 1 https://github.com/programa-stic/pyasmjit.git
cd pyasmjit
python setup.py install
cd ..
# install barf
git clone --depth 1 https://github.com/programa-stic/barf-project
cd barf-project/
python setup.py install
cd ..
mkdir -p bin
ln -s $(which BARFgadgets) bin/barfgadgets