From 7144e756e51a2d33b2d9ea9a59fd61d6cb836437 Mon Sep 17 00:00:00 2001 From: Steven Van Acker Date: Thu, 16 Feb 2017 22:40:17 +0100 Subject: [PATCH] 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 --- afl/install | 2 +- afl/install-root-archlinux | 2 +- afl/install-root-debian | 2 +- android-sdk/install | 2 +- android-sdk/install-root-archlinux | 2 +- android-sdk/install-root-debian | 2 +- angr/install | 2 +- angr/install-root-debian | 2 +- apktool/install | 2 +- apktool/install-root-archlinux | 2 +- apktool/install-root-debian | 2 +- barf/install | 4 +++- barf/install-root-debian | 2 +- barf/uninstall | 2 +- beef/install | 2 +- beef/install-root-archlinux | 2 +- beef/install-root-debian | 2 +- bin/manage-tools | 21 +++++++++++++++++++-- bindead/install | 2 +- bindead/install-root-debian | 2 +- binwalk/install | 2 +- burpsuite/install | 2 +- burpsuite/install-root-archlinux | 2 +- burpsuite/install-root-debian | 2 +- capstone/install | 2 +- capstone/test | 2 +- capstone/uninstall | 2 +- checksec/install | 2 +- codereason/install | 2 +- codereason/install-root-debian | 2 +- commix/install | 2 +- cribdrag/install | 2 +- cross2/install | 2 +- crosstool/install | 2 +- crosstool/install-root-archlinux | 2 +- crosstool/install-root-debian | 2 +- crosstool/uninstall | 2 +- df/install | 2 +- df/install-root-debian | 2 +- dirb/install | 2 +- dirb/install-root-archlinux | 2 +- dirb/install-root-debian | 2 +- dirsearch/install | 2 +- dislocker/install | 2 +- dislocker/install-root-archlinux | 2 +- dislocker/install-root-debian | 2 +- elfkickers/install | 2 +- elfparser/install | 2 +- elfparser/install-root-debian | 2 +- evilize/install | 2 +- exetractor/install | 2 +- featherduster/install | 2 +- featherduster/install-root-debian | 2 +- featherduster/uninstall | 2 +- firmware-mod-kit/install | 2 +- firmware-mod-kit/install-root-archlinux | 2 +- firmware-mod-kit/install-root-debian | 2 +- foresight/install | 2 +- foresight/uninstall | 2 +- gdb-heap/install | 2 +- gdb-heap/install-root-debian | 2 +- gdb-heap/install-root-fedora | 2 +- gdb/install | 2 +- gdb/install-root-archlinux | 2 +- gdb/install-root-debian | 2 +- gdb/install-root-fedora | 2 +- gef/install | 2 +- hash-identifier/install | 2 +- hash-identifier/install-root-debian | 2 +- hashkill/install | 2 +- hashkill/install-root-archlinux | 2 +- hashkill/install-root-debian | 2 +- hashpump-partialhash/install | 2 +- hashpump-partialhash/install-root-archlinux | 2 +- hashpump-partialhash/install-root-debian | 2 +- hashpump/install | 2 +- hashpump/install-root-archlinux | 2 +- hashpump/install-root-debian | 2 +- hashpump/uninstall | 2 +- honggfuzz/install | 2 +- honggfuzz/install-root-archlinux | 2 +- honggfuzz/install-root-debian | 2 +- jdgui/install | 2 +- jdgui/install-root-archlinux | 2 +- jdgui/install-root-debian | 2 +- keystone/install | 2 +- keystone/install-root-archlinux | 2 +- keystone/install-root-debian | 2 +- keystone/test | 2 +- keystone/uninstall | 2 +- libheap/install | 2 +- libheap/install-root-debian | 2 +- libheap/install-root-fedora | 2 +- littleblackbox/install | 2 +- littleblackbox/install-root-archlinux | 2 +- littleblackbox/install-root-debian | 2 +- mitmproxy/install | 2 +- mitmproxy/install-root-debian | 2 +- mitmproxy/uninstall | 2 +- msieve/install | 2 +- msieve/install-root-archlinux | 2 +- msieve/install-root-debian | 2 +- panda/install | 2 +- panda/install-root-archlinux | 2 +- panda/install-root-debian | 2 +- pathgrind/install | 2 +- pathgrind/install-root-debian | 2 +- pdf-parser/install | 2 +- peda/install | 2 +- peepdf/install | 2 +- pemcrack/install | 2 +- pemcrack/install-root-debian | 2 +- pkcrack/install | 2 +- preeny/install | 2 +- pwndbg/install | 2 +- pwndbg/install-root-debian | 2 +- pwndbg/install-root-fedora | 2 +- pwntools/install | 2 +- pwntools/install-root-archlinux | 2 +- pwntools/install-root-fedora | 2 +- pwntools/install-root-ubuntu | 2 +- pwntools/uninstall | 2 +- python-paddingoracle/install | 2 +- python-paddingoracle/uninstall | 2 +- python-pin/install | 2 +- pyvmmonitor/install | 2 +- qemu/install | 2 +- qemu/install-root-archlinux | 2 +- qemu/install-root-debian | 2 +- qira/install | 2 +- qira/install-root-archlinux | 2 +- qira/install-root-debian | 2 +- radare2/install | 2 +- radare2/uninstall | 2 +- reveng/install | 2 +- ropper/install | 2 +- ropper/test | 2 +- rp++/install | 2 +- scrdec18/install | 2 +- shellnoob/install | 2 +- shellsploit/install | 2 +- snowman/install | 2 +- snowman/install-root-archlinux | 2 +- snowman/install-root-debian | 2 +- snowman/install-root-fedora | 2 +- sonic-visualizer/install | 2 +- sonic-visualizer/install-root-archlinux | 2 +- sonic-visualizer/install-root-debian | 2 +- sqlmap/install | 2 +- sqlmap/install-root-archlinux | 2 +- sqlmap/install-root-debian | 2 +- ssh_decoder/install | 2 +- sslsplit/install | 2 +- sslsplit/install-root-archlinux | 2 +- sslsplit/install-root-debian | 2 +- steganabara/install | 2 +- stegdetect/install | 2 +- stegdetect/install-root-archlinux | 2 +- stegdetect/install-root-debian | 2 +- stegsolve/install | 2 +- subbrute/install | 2 +- taintgrind/install | 2 +- testdisk/install | 2 +- tor-browser/install | 2 +- unicorn/install | 2 +- unicorn/install-root-debian | 2 +- unicorn/test | 2 +- unicorn/uninstall | 2 +- veles/install | 2 +- veles/install-root-archlinux | 2 +- veles/install-root-debian | 2 +- villoc/install | 2 +- virtualsocket/install | 2 ++ wcc/install | 2 +- wcc/install-root-archlinux | 2 +- wcc/install-root-debian | 2 +- wcc/install-root-fedora | 2 +- xortool/install | 2 +- xortool/uninstall | 2 +- xrop/install | 2 +- xspy/install | 2 +- xspy/install-root-debian | 2 +- yafu/install | 2 +- yafu/test | 2 +- z3/install | 4 +++- z3/test | 6 ++++-- z3/uninstall | 2 +- zsteg/install | 2 +- zsteg/install-root-archlinux | 2 +- zsteg/install-root-debian | 2 +- 190 files changed, 216 insertions(+), 191 deletions(-) diff --git a/afl/install b/afl/install index dd5832d..fa7acd1 100755 --- a/afl/install +++ b/afl/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex # # AFL diff --git a/afl/install-root-archlinux b/afl/install-root-archlinux index 41ce76f..deddec6 100755 --- a/afl/install-root-archlinux +++ b/afl/install-root-archlinux @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail pacman -Syu --noconfirm --needed bison qemu diff --git a/afl/install-root-debian b/afl/install-root-debian index 8ecb18e..b29082e 100755 --- a/afl/install-root-debian +++ b/afl/install-root-debian @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail apt-get -y build-dep qemu diff --git a/android-sdk/install b/android-sdk/install index 9745425..d36553e 100755 --- a/android-sdk/install +++ b/android-sdk/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex [ -e android-sdk_r24.4.1-linux.tgz ] || wget https://dl.google.com/android/android-sdk_r24.4.1-linux.tgz [ -e android-sdk-linux ] || tar xfz android-sdk_r24.4.1-linux.tgz diff --git a/android-sdk/install-root-archlinux b/android-sdk/install-root-archlinux index 72ef27d..1e82b03 100755 --- a/android-sdk/install-root-archlinux +++ b/android-sdk/install-root-archlinux @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail pacman -Syu --noconfirm --needed jre7-openjdk jdk7-openjdk diff --git a/android-sdk/install-root-debian b/android-sdk/install-root-debian index e7ef4c5..daad486 100755 --- a/android-sdk/install-root-debian +++ b/android-sdk/install-root-debian @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail apt-get -y install openjdk-7-jre openjdk-7-jdk diff --git a/angr/install b/angr/install index 008c21b..c48f8b3 100755 --- a/angr/install +++ b/angr/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex source ctf-tools-venv-activate diff --git a/angr/install-root-debian b/angr/install-root-debian index c9be941..8c20534 100755 --- a/angr/install-root-debian +++ b/angr/install-root-debian @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail # for angr diff --git a/apktool/install b/apktool/install index 4bf1ca2..56e81a8 100755 --- a/apktool/install +++ b/apktool/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex mkdir bin wget https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/linux/apktool wget https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_2.2.0.jar diff --git a/apktool/install-root-archlinux b/apktool/install-root-archlinux index 07e5ef1..ac72556 100755 --- a/apktool/install-root-archlinux +++ b/apktool/install-root-archlinux @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail pacman -Syu --noconfirm --needed jre8-openjdk diff --git a/apktool/install-root-debian b/apktool/install-root-debian index a37d5e1..21bca34 100755 --- a/apktool/install-root-debian +++ b/apktool/install-root-debian @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail apt-get install -y default-jre diff --git a/barf/install b/barf/install index c705f7a..11d8794 100755 --- a/barf/install +++ b/barf/install @@ -1,10 +1,12 @@ -#!/bin/bash +#!/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 diff --git a/barf/install-root-debian b/barf/install-root-debian index 6696d43..a37ff21 100755 --- a/barf/install-root-debian +++ b/barf/install-root-debian @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail apt-get -y install binutils-multiarch-dev diff --git a/barf/uninstall b/barf/uninstall index 9d78e7c..d6e93a7 100755 --- a/barf/uninstall +++ b/barf/uninstall @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex ctf-tools-pip uninstall -y barf pyasmjit rm -f $VIRTUAL_ENV/bin/BARFgadgets diff --git a/beef/install b/beef/install index acd7f52..2ccdc7a 100755 --- a/beef/install +++ b/beef/install @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex git clone --depth 1 https://github.com/beefproject/beef diff --git a/beef/install-root-archlinux b/beef/install-root-archlinux index f0e09bc..e898a41 100755 --- a/beef/install-root-archlinux +++ b/beef/install-root-archlinux @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex pacman -Syu --noconfirm --needed \ ruby python2 ruby-bundler \ diff --git a/beef/install-root-debian b/beef/install-root-debian index dd185e4..11fbe64 100755 --- a/beef/install-root-debian +++ b/beef/install-root-debian @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex echo "Need to get ruby with RVM... Unsupported for now" exit 1 diff --git a/bin/manage-tools b/bin/manage-tools index 21d5139..0adb5ce 100755 --- a/bin/manage-tools +++ b/bin/manage-tools @@ -199,6 +199,7 @@ done [[ -z ${ALLOW_SUDO+x} ]] && export ALLOW_SUDO=0 [[ -z ${FORCE+x} ]] && export FORCE=0 [[ -z ${VERBOSE_OUTPUT+x} ]] && export VERBOSE_OUTPUT=0 +export EXPECTFAIL=${EXPECTFAIL:-0} if [[ $# -ge 1 ]]; then ACTION="$1" @@ -251,6 +252,13 @@ case $ACTION in exit 0 fi + # the first line in all install and uninstall scripts should have the -e flag, otherwise fail + if [ $(for i in install* uninstall test; do if [ -e "$i" ]; then head -1 "$i"; fi; done | sort | uniq | grep -v '^#!/bin/bash -ex$' | wc -l) -ne 0 ]; + then + tool_log "not all install/uninstall/test scripts start with '#!/bin/bash -ex', which is a must for accurate testing." + exit 1 + fi + tool_log "starting install, logging to $PWD/install.log" rm -f install.log @@ -331,10 +339,12 @@ case $ACTION in if [ "$FORCE" -eq 0 ] && ! cat README.md | grep "<\!--tool-->" | grep "| \[$TOOL\](" | grep -q -- "--test--" then tool_log "Tests not enabled." + if [ "$EXPECTFAIL" -eq "1" ]; then exit 1; fi else - $0 install $TOOL + if ( + if ! $0 install $TOOL; then exit 1; fi - cd $TOOL + cd $TOOL || exit 1 if [ -f ./test ] then tool_log "Running test script." @@ -347,6 +357,13 @@ case $ACTION in else tool_log "Install succeeded. No test script!" fi + exit 0 + ); + then + if [ "$EXPECTFAIL" -eq "1" ]; then exit 1; else exit 0; fi + else + if [ "$EXPECTFAIL" -eq "1" ]; then exit 0; else exit 1; fi + fi fi ;; *) diff --git a/bindead/install b/bindead/install index f93550e..7ff864c 100755 --- a/bindead/install +++ b/bindead/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex INST_DIR="$PWD" diff --git a/bindead/install-root-debian b/bindead/install-root-debian index 09c3f63..7175f53 100755 --- a/bindead/install-root-debian +++ b/bindead/install-root-debian @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail apt-get -y install maven libprotobuf-dev openjdk-7-jre openjdk-7-jdk diff --git a/binwalk/install b/binwalk/install index 67b09a5..cd85624 100755 --- a/binwalk/install +++ b/binwalk/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex git clone --depth 1 https://github.com/devttys0/binwalk.git ctf-tools-pip install -e binwalk diff --git a/burpsuite/install b/burpsuite/install index 69826ee..49f1411 100755 --- a/burpsuite/install +++ b/burpsuite/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex wget -O ./burp.jar 'https://portswigger.net/DownloadUpdate.ashx?Product=Free' chmod 755 ./burp.jar diff --git a/burpsuite/install-root-archlinux b/burpsuite/install-root-archlinux index 5a77a79..48d875e 100755 --- a/burpsuite/install-root-archlinux +++ b/burpsuite/install-root-archlinux @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail pacman -Syu --noconfirm --needed jre7-openjdk diff --git a/burpsuite/install-root-debian b/burpsuite/install-root-debian index 78b0902..0388e49 100755 --- a/burpsuite/install-root-debian +++ b/burpsuite/install-root-debian @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail apt-get -y install openjdk-7-jre diff --git a/capstone/install b/capstone/install index c6c26a4..715e8af 100755 --- a/capstone/install +++ b/capstone/install @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex ctf-tools-pip install --no-use-wheel -U capstone ctf-tools-pip3 install --no-use-wheel -U capstone diff --git a/capstone/test b/capstone/test index f7e1ebd..36e2881 100755 --- a/capstone/test +++ b/capstone/test @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex PY_TEST_FILE=$(mktemp) cat << END > $PY_TEST_FILE diff --git a/capstone/uninstall b/capstone/uninstall index 233dd9e..d8e4f24 100755 --- a/capstone/uninstall +++ b/capstone/uninstall @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex ctf-tools-pip uninstall -y capstone || true ctf-tools-pip3 uninstall -y capstone || true diff --git a/checksec/install b/checksec/install index d3d07bb..b0ad48d 100755 --- a/checksec/install +++ b/checksec/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex git clone --depth 1 https://github.com/slimm609/checksec.sh mkdir bin diff --git a/codereason/install b/codereason/install index 4464357..073cfa0 100755 --- a/codereason/install +++ b/codereason/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex git clone --depth 1 https://github.com/trailofbits/codereason cd codereason diff --git a/codereason/install-root-debian b/codereason/install-root-debian index ecf98f4..4798857 100755 --- a/codereason/install-root-debian +++ b/codereason/install-root-debian @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail apt-get -y install build-essential gcc g++ make cmake libboost-dev libprotobuf-dev protobuf-compiler libboost-thread-dev libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-date-time-dev libboost-regex-dev diff --git a/commix/install b/commix/install index aeb3b94..6d9f304 100755 --- a/commix/install +++ b/commix/install @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex git clone --depth 1 https://github.com/stasinopoulos/commix.git mkdir bin diff --git a/cribdrag/install b/cribdrag/install index 8dbd38a..1fd414d 100755 --- a/cribdrag/install +++ b/cribdrag/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex git clone --depth 1 https://github.com/SpiderLabs/cribdrag diff --git a/cross2/install b/cross2/install index 21508b1..1b0d534 100755 --- a/cross2/install +++ b/cross2/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex FILE=cross2-20130826.tgz INSTALL_DIR=$PWD diff --git a/crosstool/install b/crosstool/install index 905bb58..5eec21b 100755 --- a/crosstool/install +++ b/crosstool/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex mkdir -p src [ -e crosstool-ng ] || git clone --depth 1 https://github.com/crosstool-ng/crosstool-ng.git diff --git a/crosstool/install-root-archlinux b/crosstool/install-root-archlinux index b071db2..9319c65 100755 --- a/crosstool/install-root-archlinux +++ b/crosstool/install-root-archlinux @@ -1,3 +1,3 @@ -#!/bin/bash -e +#!/bin/bash -ex pacman -Syu --noconfirm gperf flex bison help2man gawk ncurses diff --git a/crosstool/install-root-debian b/crosstool/install-root-debian index b9e870d..f569ad7 100755 --- a/crosstool/install-root-debian +++ b/crosstool/install-root-debian @@ -1,3 +1,3 @@ -#!/bin/bash -e +#!/bin/bash -ex apt-get install -y gperf flex bison help2man gawk libncurses5-dev diff --git a/crosstool/uninstall b/crosstool/uninstall index 396e755..5c3ecb2 100755 --- a/crosstool/uninstall +++ b/crosstool/uninstall @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex [ -e x-tools ] && chmod -R u+w x-tools rm -rf crosstools-ng diff --git a/df/install b/df/install index db470e7..bb485f6 100755 --- a/df/install +++ b/df/install @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex wget -O - http://www.bay12games.com/dwarves/df_43_05_linux.tar.bz2 | tar xj diff --git a/df/install-root-debian b/df/install-root-debian index 4b5294d..00b6825 100755 --- a/df/install-root-debian +++ b/df/install-root-debian @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail apt-get -y install libasound2:i386 libasyncns0:i386 libatk1.0-0:i386 libc6:i386 libcaca0:i386 libcairo2:i386 libdatrie1:i386 libdbus-1-3:i386 libdrm2:i386 libexpat1:i386 libffi6:i386 libflac8:i386 libfontconfig1:i386 libfreetype6:i386 libgdk-pixbuf2.0-0:i386 libgl1-mesa-glx:i386 libglapi-mesa:i386 libglib2.0-0:i386 libglu1-mesa:i386 libgraphite2-3:i386 libgtk2.0-0:i386 libharfbuzz0b:i386 libjbig0:i386 libjpeg-turbo8:i386 libjson-c2:i386 liblzma5:i386 libncursesw5:i386 libogg0:i386 libpango-1.0-0:i386 libpangocairo-1.0-0:i386 libpangoft2-1.0-0:i386 libpcre3:i386 libpixman-1-0:i386 libpng12-0:i386 libpulse0:i386 libsdl1.2debian:i386 libsdl-image1.2:i386 libsdl-ttf2.0-0:i386 libselinux1:i386 libslang2:i386 libsndfile1:i386 libthai0:i386 libtiff5:i386 libtinfo5:i386 libvorbis0a:i386 libvorbisenc2:i386 libwebp5:i386 libwrap0:i386 libx11-6:i386 libx11-xcb1:i386 libxau6:i386 libxcb1:i386 libxcb-dri2-0:i386 libxcb-dri3-0:i386 libxcb-glx0:i386 libxcb-present0:i386 libxcb-render0:i386 libxcb-shm0:i386 libxcb-sync1:i386 libxcomposite1:i386 libxcursor1:i386 libxdamage1:i386 libxdmcp6:i386 libxext6:i386 libxfixes3:i386 libxi6:i386 libxinerama1:i386 libxrandr2:i386 libxrender1:i386 libxshmfence1:i386 libxxf86vm1:i386 zlib1g:i386 diff --git a/dirb/install b/dirb/install index 0a789bb..a12cb85 100755 --- a/dirb/install +++ b/dirb/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex mkdir bin wget -O dirb.tar.gz http://downloads.sourceforge.net/project/dirb/dirb/2.22/dirb222.tar.gz diff --git a/dirb/install-root-archlinux b/dirb/install-root-archlinux index c9eddd1..3da8976 100755 --- a/dirb/install-root-archlinux +++ b/dirb/install-root-archlinux @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail pacman -Syu --noconfirm --needed curl gnutls diff --git a/dirb/install-root-debian b/dirb/install-root-debian index 86c573c..b5566fe 100755 --- a/dirb/install-root-debian +++ b/dirb/install-root-debian @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail apt-get -y install libcurl4-gnutls-dev diff --git a/dirsearch/install b/dirsearch/install index 6a3a5c0..ec5c6f4 100755 --- a/dirsearch/install +++ b/dirsearch/install @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex mkdir bin git clone --depth 1 https://github.com/maurosoria/dirsearch.git diff --git a/dislocker/install b/dislocker/install index 261e0a1..426f7e7 100755 --- a/dislocker/install +++ b/dislocker/install @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex wget http://www.hsc.fr/ressources/outils/dislocker/download/dislocker.tar.bz2 tar xjf dislocker.tar.bz2 diff --git a/dislocker/install-root-archlinux b/dislocker/install-root-archlinux index 57c736c..4bec1db 100755 --- a/dislocker/install-root-archlinux +++ b/dislocker/install-root-archlinux @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail pacman -Syu --noconfirm --needed mbedtls fuse diff --git a/dislocker/install-root-debian b/dislocker/install-root-debian index 5836fd3..851de6f 100755 --- a/dislocker/install-root-debian +++ b/dislocker/install-root-debian @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail apt-get -y install libfuse-dev libpolarssl-dev diff --git a/elfkickers/install b/elfkickers/install index d5ed894..6f71998 100755 --- a/elfkickers/install +++ b/elfkickers/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex git clone --depth 1 https://github.com/BR903/ELFkickers cd ELFkickers diff --git a/elfparser/install b/elfparser/install index 901eb2e..c97c8e3 100755 --- a/elfparser/install +++ b/elfparser/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex wget http://www.elfparser.com/release/elfparser_x86_64_1.4.0.deb dpkg -x elfparser_x86_64_1.4.0.deb . diff --git a/elfparser/install-root-debian b/elfparser/install-root-debian index 4d5cad2..a02a16c 100755 --- a/elfparser/install-root-debian +++ b/elfparser/install-root-debian @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail apt-get install -y libqt5widgets5 diff --git a/evilize/install b/evilize/install index c8cf94d..5cf4105 100755 --- a/evilize/install +++ b/evilize/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex wget http://www.mscs.dal.ca/~selinger/md5collision/downloads/evilize-0.2.tar.gz tar zvxf evilize-0.2.tar.gz diff --git a/exetractor/install b/exetractor/install index 25f96eb..68652b1 100755 --- a/exetractor/install +++ b/exetractor/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex git clone --depth 1 https://github.com/kholia/exetractor-clone.git diff --git a/featherduster/install b/featherduster/install index 409e77d..f032021 100755 --- a/featherduster/install +++ b/featherduster/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex git clone --depth=1 https://github.com/nccgroup/featherduster.git ctf-tools-pip install --upgrade -e featherduster diff --git a/featherduster/install-root-debian b/featherduster/install-root-debian index ed875ae..a3d8a1c 100755 --- a/featherduster/install-root-debian +++ b/featherduster/install-root-debian @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail apt-get -y install libgmp3-dev libncurses5-dev diff --git a/featherduster/uninstall b/featherduster/uninstall index 0a69434..67ec03a 100755 --- a/featherduster/uninstall +++ b/featherduster/uninstall @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex ctf-tools-pip uninstall -y featherduster || true diff --git a/firmware-mod-kit/install b/firmware-mod-kit/install index c6b4ee5..c723630 100755 --- a/firmware-mod-kit/install +++ b/firmware-mod-kit/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex git clone --depth 1 https://github.com/mirror/firmware-mod-kit.git cd firmware-mod-kit/src diff --git a/firmware-mod-kit/install-root-archlinux b/firmware-mod-kit/install-root-archlinux index 98639df..06d80b0 100755 --- a/firmware-mod-kit/install-root-archlinux +++ b/firmware-mod-kit/install-root-archlinux @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail pacman -Syu --noconfirm --needed zlib xz python2-magic diff --git a/firmware-mod-kit/install-root-debian b/firmware-mod-kit/install-root-debian index 3bcd4b2..eb00ee7 100755 --- a/firmware-mod-kit/install-root-debian +++ b/firmware-mod-kit/install-root-debian @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail apt-get -y install liblzma-dev python-magic zlib1g-dev diff --git a/foresight/install b/foresight/install index 4e796d3..926ca05 100755 --- a/foresight/install +++ b/foresight/install @@ -1,3 +1,3 @@ -#!/bin/bash -e +#!/bin/bash -ex ctf-tools-pip3 install --upgrade 'git+https://github.com/ALSchwalm/foresight.git' diff --git a/foresight/uninstall b/foresight/uninstall index 2849572..bd6b77d 100755 --- a/foresight/uninstall +++ b/foresight/uninstall @@ -1,3 +1,3 @@ -#!/bin/bash -e +#!/bin/bash -ex ctf-tools-pip3 uninstall -y foresight || true diff --git a/gdb-heap/install b/gdb-heap/install index 23d97e8..89fed9f 100755 --- a/gdb-heap/install +++ b/gdb-heap/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex git clone --depth=1 http://git.fedorahosted.org/git/gdb-heap.git || true diff --git a/gdb-heap/install-root-debian b/gdb-heap/install-root-debian index d13f0eb..7dea4c2 100755 --- a/gdb-heap/install-root-debian +++ b/gdb-heap/install-root-debian @@ -1,3 +1,3 @@ -#!/bin/bash -e +#!/bin/bash -ex apt-get install -y libc6-dbg diff --git a/gdb-heap/install-root-fedora b/gdb-heap/install-root-fedora index 318f18f..2fabca4 100755 --- a/gdb-heap/install-root-fedora +++ b/gdb-heap/install-root-fedora @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex dnf install -y dnf-plugins-core dnf debuginfo-install -y glibc diff --git a/gdb/install b/gdb/install index e8f04eb..74b7a88 100755 --- a/gdb/install +++ b/gdb/install @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -e -o pipefail curl https://ftp.gnu.org/gnu/gdb/gdb-7.12.tar.gz | tar xz diff --git a/gdb/install-root-archlinux b/gdb/install-root-archlinux index e5e7959..4643e19 100755 --- a/gdb/install-root-archlinux +++ b/gdb/install-root-archlinux @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail pacman -Syu --needed --noconfirm texinfo diff --git a/gdb/install-root-debian b/gdb/install-root-debian index 76cf84c..e4d0703 100755 --- a/gdb/install-root-debian +++ b/gdb/install-root-debian @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail apt-get -y install texinfo diff --git a/gdb/install-root-fedora b/gdb/install-root-fedora index f4aeb71..eabca0e 100755 --- a/gdb/install-root-fedora +++ b/gdb/install-root-fedora @@ -1,3 +1,3 @@ -#!/bin/bash -e +#!/bin/bash -ex dnf install -y texinfo diff --git a/gef/install b/gef/install index ccee510..8a6ecd2 100755 --- a/gef/install +++ b/gef/install @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail git clone --depth 1 https://github.com/hugsy/gef.git diff --git a/hash-identifier/install b/hash-identifier/install index 0a2c09d..d6d2c25 100755 --- a/hash-identifier/install +++ b/hash-identifier/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/hash-identifier/Hash_ID_v1.1.py chmod 755 Hash_ID_v1.1.py diff --git a/hash-identifier/install-root-debian b/hash-identifier/install-root-debian index c9cd9b3..3c401d6 100755 --- a/hash-identifier/install-root-debian +++ b/hash-identifier/install-root-debian @@ -1,3 +1,3 @@ -#!/bin/bash -e +#!/bin/bash -ex apt-get -y install tofrodos diff --git a/hashkill/install b/hashkill/install index cab00a1..a9452c7 100755 --- a/hashkill/install +++ b/hashkill/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex PREFIX=$PWD diff --git a/hashkill/install-root-archlinux b/hashkill/install-root-archlinux index 82f8d4d..a679d1d 100755 --- a/hashkill/install-root-archlinux +++ b/hashkill/install-root-archlinux @@ -1,3 +1,3 @@ -#!/bin/bash -e +#!/bin/bash -ex pacman -Syu --noconfirm --needed openssl diff --git a/hashkill/install-root-debian b/hashkill/install-root-debian index f381365..2ddfa08 100755 --- a/hashkill/install-root-debian +++ b/hashkill/install-root-debian @@ -1,3 +1,3 @@ -#!/bin/bash -e +#!/bin/bash -ex apt-get install -y libssl-dev pkg-config diff --git a/hashpump-partialhash/install b/hashpump-partialhash/install index 778bc6f..43acd89 100755 --- a/hashpump-partialhash/install +++ b/hashpump-partialhash/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex git clone --depth 1 https://github.com/mheistermann/HashPump-partialhash.git cd HashPump-partialhash diff --git a/hashpump-partialhash/install-root-archlinux b/hashpump-partialhash/install-root-archlinux index 7beecc1..da1150a 100755 --- a/hashpump-partialhash/install-root-archlinux +++ b/hashpump-partialhash/install-root-archlinux @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail pacman -Syu --noconfirm --needed openssl diff --git a/hashpump-partialhash/install-root-debian b/hashpump-partialhash/install-root-debian index f417d60..56bd6d8 100755 --- a/hashpump-partialhash/install-root-debian +++ b/hashpump-partialhash/install-root-debian @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail apt-get -y install libssl-dev diff --git a/hashpump/install b/hashpump/install index 8db51db..0a83c46 100755 --- a/hashpump/install +++ b/hashpump/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex git clone --depth 1 https://github.com/bwall/HashPump.git cd HashPump diff --git a/hashpump/install-root-archlinux b/hashpump/install-root-archlinux index 7beecc1..da1150a 100755 --- a/hashpump/install-root-archlinux +++ b/hashpump/install-root-archlinux @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail pacman -Syu --noconfirm --needed openssl diff --git a/hashpump/install-root-debian b/hashpump/install-root-debian index f417d60..56bd6d8 100755 --- a/hashpump/install-root-debian +++ b/hashpump/install-root-debian @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail apt-get -y install libssl-dev diff --git a/hashpump/uninstall b/hashpump/uninstall index ecc2944..b07ea74 100755 --- a/hashpump/uninstall +++ b/hashpump/uninstall @@ -1,3 +1,3 @@ -#!/bin/bash -e +#!/bin/bash -ex ctf-tools-pip uninstall -y hashpumpy || true diff --git a/honggfuzz/install b/honggfuzz/install index 641bce3..4aea669 100755 --- a/honggfuzz/install +++ b/honggfuzz/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex [ -e honggfuzz ] || git clone --depth 1 https://github.com/google/honggfuzz cd honggfuzz diff --git a/honggfuzz/install-root-archlinux b/honggfuzz/install-root-archlinux index 18d63b3..d56b06e 100755 --- a/honggfuzz/install-root-archlinux +++ b/honggfuzz/install-root-archlinux @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail apt-get install libbfd-dev libunwind8-dev diff --git a/honggfuzz/install-root-debian b/honggfuzz/install-root-debian index 2a5564a..4f0db23 100755 --- a/honggfuzz/install-root-debian +++ b/honggfuzz/install-root-debian @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail apt-get install -y libbfd-dev libunwind8-dev diff --git a/jdgui/install b/jdgui/install index c81f0e8..e6a60f4 100755 --- a/jdgui/install +++ b/jdgui/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex [ -e jd-gui-1.4.0.jar ] || wget https://github.com/java-decompiler/jd-gui/releases/download/v1.4.0/jd-gui-1.4.0.jar diff --git a/jdgui/install-root-archlinux b/jdgui/install-root-archlinux index 5a77a79..48d875e 100755 --- a/jdgui/install-root-archlinux +++ b/jdgui/install-root-archlinux @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail pacman -Syu --noconfirm --needed jre7-openjdk diff --git a/jdgui/install-root-debian b/jdgui/install-root-debian index 78b0902..0388e49 100755 --- a/jdgui/install-root-debian +++ b/jdgui/install-root-debian @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail apt-get -y install openjdk-7-jre diff --git a/keystone/install b/keystone/install index cc39507..1fe44fd 100755 --- a/keystone/install +++ b/keystone/install @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -e -o pipefail git clone --depth 1 https://github.com/keystone-engine/keystone.git diff --git a/keystone/install-root-archlinux b/keystone/install-root-archlinux index 6a22b8b..5462317 100755 --- a/keystone/install-root-archlinux +++ b/keystone/install-root-archlinux @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail pacman -Syu --needed --noconfirm cmake diff --git a/keystone/install-root-debian b/keystone/install-root-debian index f7023f0..7cbfac4 100755 --- a/keystone/install-root-debian +++ b/keystone/install-root-debian @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail apt-get -y install build-essential cmake diff --git a/keystone/test b/keystone/test index 8013e6c..23479c1 100755 --- a/keystone/test +++ b/keystone/test @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -e -o pipefail source ctf-tools-venv-activate diff --git a/keystone/uninstall b/keystone/uninstall index 521f14b..0ac2eae 100755 --- a/keystone/uninstall +++ b/keystone/uninstall @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -e -o pipefail source ctf-tools-venv-activate diff --git a/libheap/install b/libheap/install index 4fe5c3a..d39a5e4 100755 --- a/libheap/install +++ b/libheap/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex # move to ctftools virtual env source ctf-tools-venv-activate diff --git a/libheap/install-root-debian b/libheap/install-root-debian index d13f0eb..7dea4c2 100755 --- a/libheap/install-root-debian +++ b/libheap/install-root-debian @@ -1,3 +1,3 @@ -#!/bin/bash -e +#!/bin/bash -ex apt-get install -y libc6-dbg diff --git a/libheap/install-root-fedora b/libheap/install-root-fedora index 318f18f..2fabca4 100755 --- a/libheap/install-root-fedora +++ b/libheap/install-root-fedora @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex dnf install -y dnf-plugins-core dnf debuginfo-install -y glibc diff --git a/littleblackbox/install b/littleblackbox/install index 5a70401..fb4070b 100755 --- a/littleblackbox/install +++ b/littleblackbox/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex git clone --depth 1 https://github.com/devttys0/littleblackbox.git INST_DIR=$PWD diff --git a/littleblackbox/install-root-archlinux b/littleblackbox/install-root-archlinux index 1e85e0f..de3bc5c 100755 --- a/littleblackbox/install-root-archlinux +++ b/littleblackbox/install-root-archlinux @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail pacman -Syu --noconfirm --needed openssl libpcap sqlite diff --git a/littleblackbox/install-root-debian b/littleblackbox/install-root-debian index b22ec1a..74388f9 100755 --- a/littleblackbox/install-root-debian +++ b/littleblackbox/install-root-debian @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail apt-get -y install libssl-dev libpcap-dev libsqlite3-dev diff --git a/mitmproxy/install b/mitmproxy/install index 16827f3..e576121 100755 --- a/mitmproxy/install +++ b/mitmproxy/install @@ -1,3 +1,3 @@ -#!/bin/bash -e +#!/bin/bash -ex ctf-tools-pip install --upgrade packaging mitmproxy diff --git a/mitmproxy/install-root-debian b/mitmproxy/install-root-debian index 253f3a7..70ce3c8 100755 --- a/mitmproxy/install-root-debian +++ b/mitmproxy/install-root-debian @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail apt-get -y install libssl-dev libffi-dev libtiff5-dev libjpeg8-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk libxml2-dev libxslt1-dev diff --git a/mitmproxy/uninstall b/mitmproxy/uninstall index 3ca4c72..0c2fda3 100755 --- a/mitmproxy/uninstall +++ b/mitmproxy/uninstall @@ -1,3 +1,3 @@ -#!/bin/bash -e +#!/bin/bash -ex ctf-tools-pip uninstall -y mitmproxy || true diff --git a/msieve/install b/msieve/install index 4c2f4b7..cdab3d5 100755 --- a/msieve/install +++ b/msieve/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex mkdir bin wget -O msieve.tar.gz "http://downloads.sourceforge.net/project/msieve/msieve/Msieve v1.53/msieve153_src.tar.gz" diff --git a/msieve/install-root-archlinux b/msieve/install-root-archlinux index 29c434a..1f571c9 100755 --- a/msieve/install-root-archlinux +++ b/msieve/install-root-archlinux @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail pacman -Syu --noconfirm --needed gmp diff --git a/msieve/install-root-debian b/msieve/install-root-debian index dc68767..bcb3bc1 100755 --- a/msieve/install-root-debian +++ b/msieve/install-root-debian @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail apt-get -y install libgmp3-dev libgmp-dev libz-dev diff --git a/panda/install b/panda/install index e1a01af..abde86f 100755 --- a/panda/install +++ b/panda/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex [ -e panda ] || git clone --depth 1 https://github.com/moyix/panda diff --git a/panda/install-root-archlinux b/panda/install-root-archlinux index 8d2ce2d..39d013d 100755 --- a/panda/install-root-archlinux +++ b/panda/install-root-archlinux @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail pacman -Syu --needed --noconfirm nasm openssl libpcap subversion curl \ diff --git a/panda/install-root-debian b/panda/install-root-debian index 1039883..3ef1c3f 100755 --- a/panda/install-root-debian +++ b/panda/install-root-debian @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail apt-get -y install nasm libssl-dev libpcap-dev subversion curl \ diff --git a/pathgrind/install b/pathgrind/install index a7dcefa..b43d9c1 100755 --- a/pathgrind/install +++ b/pathgrind/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex git clone --depth 1 https://github.com/codelion/pathgrind.git cd pathgrind diff --git a/pathgrind/install-root-debian b/pathgrind/install-root-debian index 961843c..8c3cb4e 100755 --- a/pathgrind/install-root-debian +++ b/pathgrind/install-root-debian @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail apt-get -y install libc6-dev-i386 libc6-dev diff --git a/pdf-parser/install b/pdf-parser/install index 1269668..99748ec 100755 --- a/pdf-parser/install +++ b/pdf-parser/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex wget https://didierstevens.com/files/software/pdf-parser_V0_6_4.zip unzip pdf-parser_V0_6_4.zip diff --git a/peda/install b/peda/install index 6b5a4c9..7b2e820 100755 --- a/peda/install +++ b/peda/install @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail git clone --depth 1 https://github.com/longld/peda.git diff --git a/peepdf/install b/peepdf/install index 5df67f5..35fbbe1 100755 --- a/peepdf/install +++ b/peepdf/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex [ -e peepdf ] || git clone --depth 1 https://github.com/jesparza/peepdf diff --git a/pemcrack/install b/pemcrack/install index f49c2c8..8785918 100755 --- a/pemcrack/install +++ b/pemcrack/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex git clone --depth 1 https://github.com/robertdavidgraham/pemcrack.git cd pemcrack diff --git a/pemcrack/install-root-debian b/pemcrack/install-root-debian index 5eb746d..f94e361 100755 --- a/pemcrack/install-root-debian +++ b/pemcrack/install-root-debian @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail apt-get -y install libssl-dev diff --git a/pkcrack/install b/pkcrack/install index 98c544b..bcb1518 100755 --- a/pkcrack/install +++ b/pkcrack/install @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex wget https://www.unix-ag.uni-kl.de/~conrad/krypto/pkcrack/pkcrack-1.2.2.tar.gz tar xzf pkcrack-1.2.2.tar.gz diff --git a/preeny/install b/preeny/install index 1ba3f00..2434c10 100755 --- a/preeny/install +++ b/preeny/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex git clone --depth 1 https://github.com/zardus/preeny PATH=$PWD/../crosstool/bin:$PATH diff --git a/pwndbg/install b/pwndbg/install index db2c1b8..dad0261 100755 --- a/pwndbg/install +++ b/pwndbg/install @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -e -o pipefail git clone --depth 1 https://github.com/pwndbg/pwndbg diff --git a/pwndbg/install-root-debian b/pwndbg/install-root-debian index d13f0eb..7dea4c2 100755 --- a/pwndbg/install-root-debian +++ b/pwndbg/install-root-debian @@ -1,3 +1,3 @@ -#!/bin/bash -e +#!/bin/bash -ex apt-get install -y libc6-dbg diff --git a/pwndbg/install-root-fedora b/pwndbg/install-root-fedora index 318f18f..2fabca4 100755 --- a/pwndbg/install-root-fedora +++ b/pwndbg/install-root-fedora @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex dnf install -y dnf-plugins-core dnf debuginfo-install -y glibc diff --git a/pwntools/install b/pwntools/install index d500de0..36a31cb 100755 --- a/pwntools/install +++ b/pwntools/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex git clone --depth=1 https://github.com/Gallopsled/pwntools.git ctf-tools-pip install --upgrade -e pwntools diff --git a/pwntools/install-root-archlinux b/pwntools/install-root-archlinux index 24665a9..1f52678 100755 --- a/pwntools/install-root-archlinux +++ b/pwntools/install-root-archlinux @@ -1,3 +1,3 @@ -#!/bin/bash -e +#!/bin/bash -ex pacman -Syu --noconfirm --needed binutils openssl libffi diff --git a/pwntools/install-root-fedora b/pwntools/install-root-fedora index 5e17654..1d9ffb1 100755 --- a/pwntools/install-root-fedora +++ b/pwntools/install-root-fedora @@ -1,3 +1,3 @@ -#!/bin/bash -e +#!/bin/bash -ex dnf install -y binutils binutils-devel libffi-devel openssl-devel diff --git a/pwntools/install-root-ubuntu b/pwntools/install-root-ubuntu index 50ac55e..8212652 100755 --- a/pwntools/install-root-ubuntu +++ b/pwntools/install-root-ubuntu @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex apt-get -y install software-properties-common apt-add-repository -y ppa:pwntools/binutils diff --git a/pwntools/uninstall b/pwntools/uninstall index a54b1fd..404cef5 100755 --- a/pwntools/uninstall +++ b/pwntools/uninstall @@ -1,3 +1,3 @@ -#!/bin/bash -e +#!/bin/bash -ex ctf-tools-pip uninstall -y pwntools || true diff --git a/python-paddingoracle/install b/python-paddingoracle/install index 7af3e3a..e5e66f0 100755 --- a/python-paddingoracle/install +++ b/python-paddingoracle/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex git clone --depth 1 https://github.com/mwielgoszewski/python-paddingoracle.git ctf-tools-pip install -e python-paddingoracle diff --git a/python-paddingoracle/uninstall b/python-paddingoracle/uninstall index 7ba7ec6..44c1a41 100755 --- a/python-paddingoracle/uninstall +++ b/python-paddingoracle/uninstall @@ -1,3 +1,3 @@ -#!/bin/bash -e +#!/bin/bash -ex ctf-tools-pip uninstall -y python-paddingoracle || true diff --git a/python-pin/install b/python-pin/install index 453116e..5a874e9 100755 --- a/python-pin/install +++ b/python-pin/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex curl https://software.intel.com/sites/landingpage/pintool/downloads/pin-2.14-71313-gcc.4.4.7-linux.tar.gz | tar xz export PIN_ROOT=$PWD/pin-2.14-71313-gcc.4.4.7-linux diff --git a/pyvmmonitor/install b/pyvmmonitor/install index d90fe98..5dd2a13 100755 --- a/pyvmmonitor/install +++ b/pyvmmonitor/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex # retry because the server is not reliable wget -t 10 http://www.mediafire.com/download/bzmazee4bcysbi4/pyvmmonitor_1.0.1_linux.x86_64.tar.gz -O - | tar xvz diff --git a/qemu/install b/qemu/install index 4333fa0..7f4063b 100755 --- a/qemu/install +++ b/qemu/install @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -e -o pipefail curl http://download.qemu-project.org/qemu-2.8.0.tar.bz2 | tar xvj diff --git a/qemu/install-root-archlinux b/qemu/install-root-archlinux index dc6ba02..216dd19 100755 --- a/qemu/install-root-archlinux +++ b/qemu/install-root-archlinux @@ -1,3 +1,3 @@ -#!/bin/bash -e +#!/bin/bash -ex pacman -Syu --noconfirm --needed python2 diff --git a/qemu/install-root-debian b/qemu/install-root-debian index 1f56b55..d453ea8 100755 --- a/qemu/install-root-debian +++ b/qemu/install-root-debian @@ -1,3 +1,3 @@ -#!/bin/bash -e +#!/bin/bash -ex apt-get install -y python pkg-config zlib1g-dev libglib2.0-dev diff --git a/qira/install b/qira/install index 16ebdf1..7ff7cb4 100755 --- a/qira/install +++ b/qira/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex mkdir nosudo cat < nosudo/sudo diff --git a/qira/install-root-archlinux b/qira/install-root-archlinux index c9bc049..cf17c26 100755 --- a/qira/install-root-archlinux +++ b/qira/install-root-archlinux @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail pacman -Syu --noconfirm --needed python2-pip openssl libjpeg-turbo zlib \ diff --git a/qira/install-root-debian b/qira/install-root-debian index 4d822d1..76fdceb 100755 --- a/qira/install-root-debian +++ b/qira/install-root-debian @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail apt-get -y install python-pip libssl-dev build-essential python-dev python-pip debootstrap libjpeg-dev zlib1g-dev unzip wget graphviz software-properties-common libgmp-dev llvm-3.4-dev time clang-3.4 ocaml ocaml-native-compilers camlp4-extra opam clang python-virtualenv wget flex bison libtool automake autoconf autotools-dev pkg-config libglib2.0-dev libevent-2.0-5 diff --git a/radare2/install b/radare2/install index ad83915..300b2c3 100755 --- a/radare2/install +++ b/radare2/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex git clone --depth 1 https://github.com/radare/radare2.git cd radare2/ diff --git a/radare2/uninstall b/radare2/uninstall index 470a8e5..28e6315 100755 --- a/radare2/uninstall +++ b/radare2/uninstall @@ -1,3 +1,3 @@ -#/bin/bash -e +#!/bin/bash -ex ctf-tools-pip uninstall -y r2pipe || true diff --git a/reveng/install b/reveng/install index b280b50..71e3a8e 100755 --- a/reveng/install +++ b/reveng/install @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex curl http://jaist.dl.sourceforge.net/project/reveng/1.4.4/reveng-1.4.4.tar.gz | tar xz cd reveng-1.4.4 diff --git a/ropper/install b/ropper/install index a55ec85..6bc0fb1 100755 --- a/ropper/install +++ b/ropper/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex [ -e ropper ] || git clone --depth 1 https://github.com/sashs/Ropper.git ropper diff --git a/ropper/test b/ropper/test index 8c9f618..fcb90c9 100755 --- a/ropper/test +++ b/ropper/test @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex set +e source ${VIRTUALENVWRAPPER_SCRIPT} diff --git a/rp++/install b/rp++/install index 57efbc7..9a92976 100755 --- a/rp++/install +++ b/rp++/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex # 64bit test diff --git a/scrdec18/install b/scrdec18/install index 19e946a..59aac3b 100755 --- a/scrdec18/install +++ b/scrdec18/install @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex wget "https://gist.githubusercontent.com/bcse/1834878/raw/7483fb72abbb32aa69b853fdcc9f6f72e7568677/scrdec18.c" mkdir -p bin diff --git a/shellnoob/install b/shellnoob/install index f41b1b3..58038b6 100755 --- a/shellnoob/install +++ b/shellnoob/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex git clone --depth 1 https://github.com/reyammer/shellnoob diff --git a/shellsploit/install b/shellsploit/install index b5411b2..c6c8f92 100755 --- a/shellsploit/install +++ b/shellsploit/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex git clone https://github.com/b3mb4m/shellsploit-framework.git cd shellsploit-framework diff --git a/snowman/install b/snowman/install index 0273262..4625277 100755 --- a/snowman/install +++ b/snowman/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex INST_DIR=$PWD diff --git a/snowman/install-root-archlinux b/snowman/install-root-archlinux index 453cf15..a67d742 100755 --- a/snowman/install-root-archlinux +++ b/snowman/install-root-archlinux @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail pacman -Syu --needed --noconfirm boost boost-libs cmake diff --git a/snowman/install-root-debian b/snowman/install-root-debian index 9a92121..01652c4 100755 --- a/snowman/install-root-debian +++ b/snowman/install-root-debian @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail apt-get -y install libboost-dev cmake libqt4-dev diff --git a/snowman/install-root-fedora b/snowman/install-root-fedora index bf90063..f05ba18 100755 --- a/snowman/install-root-fedora +++ b/snowman/install-root-fedora @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail dnf install -y boost cmake qt5-base qqt5-base-devel diff --git a/sonic-visualizer/install b/sonic-visualizer/install index 8ca2e8a..840bccd 100755 --- a/sonic-visualizer/install +++ b/sonic-visualizer/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex INST_DIR=$PWD diff --git a/sonic-visualizer/install-root-archlinux b/sonic-visualizer/install-root-archlinux index 73a440f..615e753 100755 --- a/sonic-visualizer/install-root-archlinux +++ b/sonic-visualizer/install-root-archlinux @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail pacman -Syu --noconfirm --needed bzip2 fftw libsndfile libsamplerate \ diff --git a/sonic-visualizer/install-root-debian b/sonic-visualizer/install-root-debian index 04eaacb..71fa5ee 100755 --- a/sonic-visualizer/install-root-debian +++ b/sonic-visualizer/install-root-debian @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail apt-get -y install libbz2-dev libfftw3-dev libsndfile1-dev libsamplerate0-dev vamp-plugin-sdk librubberband-dev libsord-dev liblo-dev liblrdf0-dev liboggz2-dev libfishsound1-dev libid3tag0-dev libportaudio-dev libmad0-dev qt5-qmake qt5-default libasound-dev diff --git a/sqlmap/install b/sqlmap/install index 510f632..c45ad61 100755 --- a/sqlmap/install +++ b/sqlmap/install @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex git clone --depth 1 https://github.com/sqlmapproject/sqlmap.git ctf-tools-pip install pymysql psycopg2 pysqlite2 python-ntlm diff --git a/sqlmap/install-root-archlinux b/sqlmap/install-root-archlinux index 6f4f7f2..f594bc2 100755 --- a/sqlmap/install-root-archlinux +++ b/sqlmap/install-root-archlinux @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail pacman -Syu --noconfirm --needed sqlite diff --git a/sqlmap/install-root-debian b/sqlmap/install-root-debian index 2ff2b0e..038ac22 100755 --- a/sqlmap/install-root-debian +++ b/sqlmap/install-root-debian @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail apt-get -y install libsqlite3-dev diff --git a/ssh_decoder/install b/ssh_decoder/install index d7b32b7..f6a8fae 100755 --- a/ssh_decoder/install +++ b/ssh_decoder/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex git clone --depth 1 https://github.com/jjyg/ssh_decoder.git chmod 755 ssh_decoder/ssh_decoder.rb diff --git a/sslsplit/install b/sslsplit/install index 2133381..d396b11 100755 --- a/sslsplit/install +++ b/sslsplit/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex git clone --depth 1 https://github.com/droe/sslsplit cd sslsplit diff --git a/sslsplit/install-root-archlinux b/sslsplit/install-root-archlinux index dd0b5bb..c67f458 100755 --- a/sslsplit/install-root-archlinux +++ b/sslsplit/install-root-archlinux @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail pacman -Syu --noconfirm --needed libevent diff --git a/sslsplit/install-root-debian b/sslsplit/install-root-debian index 7ef1501..0564932 100755 --- a/sslsplit/install-root-debian +++ b/sslsplit/install-root-debian @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail apt-get -y install libevent-dev pkg-config libssl-dev diff --git a/steganabara/install b/steganabara/install index 0a923b1..5bf6949 100755 --- a/steganabara/install +++ b/steganabara/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex curl http://www.caesum.com/handbook/steganabara-1.1.1.tar.gz | tar xz mkdir -p bin diff --git a/stegdetect/install b/stegdetect/install index c59a49b..0574959 100755 --- a/stegdetect/install +++ b/stegdetect/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex INST_DIR="$PWD" diff --git a/stegdetect/install-root-archlinux b/stegdetect/install-root-archlinux index bf7ded4..c1ad9db 100755 --- a/stegdetect/install-root-archlinux +++ b/stegdetect/install-root-archlinux @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail echo "ERROR: archlinux has no aclocal-1.4. only $(aclocal --version | head -n 1)" diff --git a/stegdetect/install-root-debian b/stegdetect/install-root-debian index 6852027..568687f 100755 --- a/stegdetect/install-root-debian +++ b/stegdetect/install-root-debian @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail apt-get -y install automake1.4 diff --git a/stegsolve/install b/stegsolve/install index be5b6af..a259dbc 100755 --- a/stegsolve/install +++ b/stegsolve/install @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex wget http://www.caesum.com/handbook/Stegsolve.jar -O stegsolve.jar chmod +x stegsolve.jar diff --git a/subbrute/install b/subbrute/install index 864238b..a8e5186 100755 --- a/subbrute/install +++ b/subbrute/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex git clone --depth 1 https://github.com/TheRook/subbrute.git diff --git a/taintgrind/install b/taintgrind/install index 002676c..d0c7988 100755 --- a/taintgrind/install +++ b/taintgrind/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex INST_DIR=$PWD diff --git a/testdisk/install b/testdisk/install index 0299373..2fe8a89 100755 --- a/testdisk/install +++ b/testdisk/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex curl https://www.cgsecurity.org/testdisk-7.0.linux26-x86_64.tar.bz2 | tar xj diff --git a/tor-browser/install b/tor-browser/install index c6d57ef..58ac20e 100755 --- a/tor-browser/install +++ b/tor-browser/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex REL_PATH=$(curl https://www.torproject.org/projects/torbrowser.html.en#downloads | grep -i tor-browser-linux | grep hardened | grep td | sed -e 's/.*href="//' -e 's/">.*//') wget https://www.torproject.org/projects/$REL_PATH -O - | tar xvJ diff --git a/unicorn/install b/unicorn/install index 5e37b32..a819200 100755 --- a/unicorn/install +++ b/unicorn/install @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -e -o pipefail git clone --depth 1 https://github.com/unicorn-engine/unicorn.git diff --git a/unicorn/install-root-debian b/unicorn/install-root-debian index 3d71b07..90a5a90 100755 --- a/unicorn/install-root-debian +++ b/unicorn/install-root-debian @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail apt-get -y install libglib2.0-dev diff --git a/unicorn/test b/unicorn/test index a532cce..88c7ef1 100755 --- a/unicorn/test +++ b/unicorn/test @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -e -o pipefail source ctf-tools-venv-activate diff --git a/unicorn/uninstall b/unicorn/uninstall index 7d56aa2..aa4571a 100755 --- a/unicorn/uninstall +++ b/unicorn/uninstall @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex ctf-tools-venv-activate diff --git a/veles/install b/veles/install index abb1d17..fd515bf 100755 --- a/veles/install +++ b/veles/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex wget -O src.tar.gz https://codisec.com/wp-content/uploads/2016/12/Veles_2016.12_Source.tar.gz tar xf src.tar.gz diff --git a/veles/install-root-archlinux b/veles/install-root-archlinux index 996240b..30eef46 100755 --- a/veles/install-root-archlinux +++ b/veles/install-root-archlinux @@ -1,3 +1,3 @@ -#!/bin/bash -e +#!/bin/bash -ex pacman -Syu --noconfirm --needed cmake zlib qt5-base diff --git a/veles/install-root-debian b/veles/install-root-debian index b089aa3..fe805a1 100755 --- a/veles/install-root-debian +++ b/veles/install-root-debian @@ -1,3 +1,3 @@ -#!/bin/bash -e +#!/bin/bash -ex apt-get install -y cmake zlib1g-dev qtbase5-dev diff --git a/villoc/install b/villoc/install index eb495c9..f09e06d 100755 --- a/villoc/install +++ b/villoc/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex curl https://software.intel.com/sites/landingpage/pintool/downloads/pin-2.14-71313-gcc.4.4.7-linux.tar.gz | tar xz export PIN_ROOT=$PWD/pin-2.14-71313-gcc.4.4.7-linux diff --git a/virtualsocket/install b/virtualsocket/install index e448e79..72b6681 100755 --- a/virtualsocket/install +++ b/virtualsocket/install @@ -1,3 +1,5 @@ +#!/bin/bash -ex + git clone --depth 1 https://github.com/antoniobianchi333/virtualsocket.git ctf-tools-pip install -e virtualsocket/ diff --git a/wcc/install b/wcc/install index 9f78111..98992e7 100755 --- a/wcc/install +++ b/wcc/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex git clone --depth 1 https://github.com/endrazine/wcc pushd wcc diff --git a/wcc/install-root-archlinux b/wcc/install-root-archlinux index 75c5b0d..91ec20b 100755 --- a/wcc/install-root-archlinux +++ b/wcc/install-root-archlinux @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail pacman -Syu --noconfirm --needed clang uthash readline capstone \ diff --git a/wcc/install-root-debian b/wcc/install-root-debian index 1c03f48..82de44a 100755 --- a/wcc/install-root-debian +++ b/wcc/install-root-debian @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail apt-get install clang libbfd-dev uthash-dev \ diff --git a/wcc/install-root-fedora b/wcc/install-root-fedora index 506dacb..7f55248 100755 --- a/wcc/install-root-fedora +++ b/wcc/install-root-fedora @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex set -eu -o pipefail dnf install -y clang clang-libs clang-devel binutils binutils-devel \ diff --git a/xortool/install b/xortool/install index d7f733c..566b8bd 100755 --- a/xortool/install +++ b/xortool/install @@ -1,3 +1,3 @@ -#!/bin/bash -e +#!/bin/bash -ex ctf-tools-pip install --upgrade 'git+https://github.com/hellman/xortool.git' diff --git a/xortool/uninstall b/xortool/uninstall index fae39d7..c7353cb 100755 --- a/xortool/uninstall +++ b/xortool/uninstall @@ -1,3 +1,3 @@ -#!/bin/bash -e +#!/bin/bash -ex ctf-tools-pip uninstall -y xortool || true diff --git a/xrop/install b/xrop/install index 6c825e8..8e887f4 100755 --- a/xrop/install +++ b/xrop/install @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex git clone --depth 1 https://github.com/acama/xrop.git cd xrop diff --git a/xspy/install b/xspy/install index 814fd87..dbabab3 100755 --- a/xspy/install +++ b/xspy/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex [ -e xspy ] || git clone git://git.kali.org/packages/xspy.git mkdir -p bin diff --git a/xspy/install-root-debian b/xspy/install-root-debian index d48c2b4..9233fb5 100755 --- a/xspy/install-root-debian +++ b/xspy/install-root-debian @@ -1,3 +1,3 @@ -#!/bin/bash -e +#!/bin/bash -ex apt-get install -y libx11-dev diff --git a/yafu/install b/yafu/install index 0e833cd..982b9fb 100755 --- a/yafu/install +++ b/yafu/install @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex mkdir yafu mkdir bin diff --git a/yafu/test b/yafu/test index 5089fb0..079a1b4 100755 --- a/yafu/test +++ b/yafu/test @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex RESULT=$(./bin/yafu 'factor(10)' | grep "^P" | tr -d '\n') [ "$RESULT" == "P1 = 2P1 = 5" ] || exit 1 diff --git a/z3/install b/z3/install index 8699376..51efe3d 100755 --- a/z3/install +++ b/z3/install @@ -1,11 +1,13 @@ -#!/bin/bash +#!/bin/bash -ex git clone https://github.com/Z3Prover/z3 cd z3 # move to ctftools virtual env +set +e source ${VIRTUALENVWRAPPER_SCRIPT} workon ctftools +set -e # install z3 python scripts/mk_make.py --python diff --git a/z3/test b/z3/test index bc1ae0b..1d53bdc 100755 --- a/z3/test +++ b/z3/test @@ -1,7 +1,9 @@ -#!/bin/bash +#!/bin/bash -ex +set +e source ${VIRTUALENVWRAPPER_SCRIPT} - workon ctftools +set -e + python -c 'import z3; print(z3.get_version_string())' || exit 1 exit 0 diff --git a/z3/uninstall b/z3/uninstall index c3e0d36..bd33492 100755 --- a/z3/uninstall +++ b/z3/uninstall @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -ex cd z3/build make uninstall diff --git a/zsteg/install b/zsteg/install index 5333292..290dd98 100755 --- a/zsteg/install +++ b/zsteg/install @@ -1,3 +1,3 @@ -#!/bin/bash -e +#!/bin/bash -ex gem install --user-install zsteg diff --git a/zsteg/install-root-archlinux b/zsteg/install-root-archlinux index cc7ee0c..1fd31fd 100755 --- a/zsteg/install-root-archlinux +++ b/zsteg/install-root-archlinux @@ -1,3 +1,3 @@ -#!/bin/bash -e +#!/bin/bash -ex pacman -Syu --noconfirm --needed ruby diff --git a/zsteg/install-root-debian b/zsteg/install-root-debian index 9bb1b08..8211568 100755 --- a/zsteg/install-root-debian +++ b/zsteg/install-root-debian @@ -1,3 +1,3 @@ -#!/bin/bash -e +#!/bin/bash -ex apt-get install -y ruby