Merge pull request #118 from StevenVanAcker/travis-docker

improved travis-ci testing using xenial and trusty docker containers
This commit is contained in:
Yan 2017-02-17 07:01:52 -08:00 committed by GitHub
commit 7f3da5931a
193 changed files with 503 additions and 228 deletions

View file

@ -1,12 +1,188 @@
language: bash
sudo: required
dist: trusty
services:
- docker
before_install:
- if [ "$DISTRO" = "xenial" ]; then docker build -t ctftools -f Dockerfile.xenial .; fi
- if [ "$DISTRO" = "trusty" ]; then docker build -t ctftools -f Dockerfile .; fi
env:
- PATH=$TRAVIS_BUILD_DIR/bin:$PATH SUITE="all" OPTS="-s"
- PATH=$TRAVIS_BUILD_DIR/bin:$PATH SUITE="z3" OPTS="-s -v -f"
- PATH=$TRAVIS_BUILD_DIR/bin:$PATH SUITE="qemu" OPTS="-s -f -v"
- PATH=$TRAVIS_BUILD_DIR/bin:$PATH SUITE="qira" OPTS="-s -f"
- PATH=$TRAVIS_BUILD_DIR/bin:$PATH SUITE="afl" OPTS="-s -f"
install: (sudo apt-get update || true) && bin/manage-tools -s setup
- DISTRO="trusty" TOOL="afl"
- DISTRO="trusty" TOOL="android-sdk"
- DISTRO="trusty" TOOL="angr" EXPECTFAIL=1
- DISTRO="trusty" TOOL="apktool"
- DISTRO="trusty" TOOL="barf"
- DISTRO="trusty" TOOL="beef" EXPECTFAIL=1 ### unsupported for now, needs ruby with RVM
- DISTRO="trusty" TOOL="bindead"
- DISTRO="trusty" TOOL="binwalk"
- DISTRO="trusty" TOOL="burpsuite"
- DISTRO="trusty" TOOL="capstone"
- DISTRO="trusty" TOOL="checksec"
- DISTRO="trusty" TOOL="codereason"
- DISTRO="trusty" TOOL="commix"
- DISTRO="trusty" TOOL="cribdrag"
#- DISTRO="trusty" TOOL="cross2" ### takes too long for travis
#- DISTRO="trusty" TOOL="crosstool" ### takes too long for travis
- DISTRO="trusty" TOOL="df"
- DISTRO="trusty" TOOL="dirb"
- DISTRO="trusty" TOOL="dirsearch"
- DISTRO="trusty" TOOL="dislocker"
- DISTRO="trusty" TOOL="elfkickers"
- DISTRO="trusty" TOOL="elfparser"
- DISTRO="trusty" TOOL="evilize"
- DISTRO="trusty" TOOL="exetractor"
- DISTRO="trusty" TOOL="featherduster"
- DISTRO="trusty" TOOL="firmware-mod-kit"
- DISTRO="trusty" TOOL="foresight"
- DISTRO="trusty" TOOL="gdb"
- DISTRO="trusty" TOOL="gdb-heap"
- DISTRO="trusty" TOOL="gef"
- DISTRO="trusty" TOOL="hash-identifier"
- DISTRO="trusty" TOOL="hashkill"
- DISTRO="trusty" TOOL="hashpump"
- DISTRO="trusty" TOOL="hashpump-partialhash"
- DISTRO="trusty" TOOL="honggfuzz"
- DISTRO="trusty" TOOL="jdgui"
- DISTRO="trusty" TOOL="keystone"
- DISTRO="trusty" TOOL="libheap"
- DISTRO="trusty" TOOL="littleblackbox"
- DISTRO="trusty" TOOL="mitmproxy"
- DISTRO="trusty" TOOL="msieve"
- DISTRO="trusty" TOOL="panda" EXPECTFAIL=1 ### not sure why this fails, compilation errors
- DISTRO="trusty" TOOL="pathgrind" EXPECTFAIL=1 ### only works on kernel 2.4 or 2.6
- DISTRO="trusty" TOOL="pdf-parser"
- DISTRO="trusty" TOOL="peda"
- DISTRO="trusty" TOOL="peepdf"
- DISTRO="trusty" TOOL="pemcrack"
- DISTRO="trusty" TOOL="pkcrack"
- DISTRO="trusty" TOOL="preeny"
- DISTRO="trusty" TOOL="pwndbg"
- DISTRO="trusty" TOOL="pwntools" EXPECTFAIL=1
- DISTRO="trusty" TOOL="python-paddingoracle"
- DISTRO="trusty" TOOL="python-pin"
- DISTRO="trusty" TOOL="pyvmmonitor"
- DISTRO="trusty" TOOL="qemu"
- DISTRO="trusty" TOOL="qira"
- DISTRO="trusty" TOOL="radare2"
- DISTRO="trusty" TOOL="reveng"
- DISTRO="trusty" TOOL="ropper"
- DISTRO="trusty" TOOL="rp++"
- DISTRO="trusty" TOOL="scrdec18"
- DISTRO="trusty" TOOL="shellnoob"
- DISTRO="trusty" TOOL="shellsploit"
- DISTRO="trusty" TOOL="snowman"
- DISTRO="trusty" TOOL="sonic-visualizer" EXPECTFAIL=1 ### build errors
- DISTRO="trusty" TOOL="sqlmap"
- DISTRO="trusty" TOOL="ssh_decoder"
- DISTRO="trusty" TOOL="sslsplit"
- DISTRO="trusty" TOOL="steganabara"
- DISTRO="trusty" TOOL="stegdetect"
- DISTRO="trusty" TOOL="stegsolve"
- DISTRO="trusty" TOOL="subbrute"
- DISTRO="trusty" TOOL="taintgrind" EXPECTFAIL=1 ### missing Iop_* declarations
- DISTRO="trusty" TOOL="testdisk"
- DISTRO="trusty" TOOL="tor-browser"
- DISTRO="trusty" TOOL="unicorn"
- DISTRO="trusty" TOOL="veles" EXPECTFAIL=1 ### Cmake is too old
- DISTRO="trusty" TOOL="villoc"
- DISTRO="trusty" TOOL="virtualsocket"
- DISTRO="trusty" TOOL="wcc" EXPECTFAIL=1 ### depends on xenial
- DISTRO="trusty" TOOL="xortool"
- DISTRO="trusty" TOOL="xrop" EXPECTFAIL=1
- DISTRO="trusty" TOOL="xspy"
- DISTRO="trusty" TOOL="yafu"
- DISTRO="trusty" TOOL="z3"
- DISTRO="trusty" TOOL="zsteg"
- DISTRO="xenial" TOOL="afl"
- DISTRO="xenial" TOOL="android-sdk"
- DISTRO="xenial" TOOL="angr"
- DISTRO="xenial" TOOL="apktool"
- DISTRO="xenial" TOOL="barf"
- DISTRO="xenial" TOOL="beef" EXPECTFAIL=1 ### unsupported for now, needs ruby with RVM
- DISTRO="xenial" TOOL="bindead" EXPECTFAIL=1
- DISTRO="xenial" TOOL="binwalk"
- DISTRO="xenial" TOOL="burpsuite"
- DISTRO="xenial" TOOL="capstone"
- DISTRO="xenial" TOOL="checksec"
- DISTRO="xenial" TOOL="codereason"
- DISTRO="xenial" TOOL="commix"
- DISTRO="xenial" TOOL="cribdrag"
#- DISTRO="xenial" TOOL="cross2" ### takes too long for travis
#- DISTRO="xenial" TOOL="crosstool" ### takes too long for travis
- DISTRO="xenial" TOOL="df"
- DISTRO="xenial" TOOL="dirb"
- DISTRO="xenial" TOOL="dirsearch"
- DISTRO="xenial" TOOL="dislocker"
- DISTRO="xenial" TOOL="elfkickers"
- DISTRO="xenial" TOOL="elfparser"
- DISTRO="xenial" TOOL="evilize"
- DISTRO="xenial" TOOL="exetractor"
- DISTRO="xenial" TOOL="featherduster"
- DISTRO="xenial" TOOL="firmware-mod-kit"
- DISTRO="xenial" TOOL="foresight"
- DISTRO="xenial" TOOL="gdb"
- DISTRO="xenial" TOOL="gdb-heap"
- DISTRO="xenial" TOOL="gef"
- DISTRO="xenial" TOOL="hash-identifier"
- DISTRO="xenial" TOOL="hashkill" EXPECTFAIL=1
- DISTRO="xenial" TOOL="hashpump"
- DISTRO="xenial" TOOL="hashpump-partialhash"
- DISTRO="xenial" TOOL="honggfuzz"
- DISTRO="xenial" TOOL="jdgui"
- DISTRO="xenial" TOOL="keystone"
- DISTRO="xenial" TOOL="libheap"
- DISTRO="xenial" TOOL="littleblackbox"
- DISTRO="xenial" TOOL="mitmproxy"
- DISTRO="xenial" TOOL="msieve"
- DISTRO="xenial" TOOL="panda" EXPECTFAIL=1 ### not sure why this fails, compilation errors
- DISTRO="xenial" TOOL="pathgrind" EXPECTFAIL=1 ### only works on kernel 2.4 or 2.6
- DISTRO="xenial" TOOL="pdf-parser"
- DISTRO="xenial" TOOL="peda"
- DISTRO="xenial" TOOL="peepdf"
- DISTRO="xenial" TOOL="pemcrack"
- DISTRO="xenial" TOOL="pkcrack"
- DISTRO="xenial" TOOL="preeny"
- DISTRO="xenial" TOOL="pwndbg"
- DISTRO="xenial" TOOL="pwntools" EXPECTFAIL=1
- DISTRO="xenial" TOOL="python-paddingoracle"
- DISTRO="xenial" TOOL="python-pin" EXPECTFAIL=1
- DISTRO="xenial" TOOL="pyvmmonitor"
- DISTRO="xenial" TOOL="qemu"
- DISTRO="xenial" TOOL="qira" EXPECTFAIL=1
- DISTRO="xenial" TOOL="radare2"
- DISTRO="xenial" TOOL="reveng"
- DISTRO="xenial" TOOL="ropper"
- DISTRO="xenial" TOOL="rp++"
- DISTRO="xenial" TOOL="scrdec18"
- DISTRO="xenial" TOOL="shellnoob"
- DISTRO="xenial" TOOL="shellsploit"
- DISTRO="xenial" TOOL="snowman"
- DISTRO="xenial" TOOL="sonic-visualizer" EXPECTFAIL=1 ### build errors
- DISTRO="xenial" TOOL="sqlmap"
- DISTRO="xenial" TOOL="ssh_decoder"
- DISTRO="xenial" TOOL="sslsplit"
- DISTRO="xenial" TOOL="steganabara"
- DISTRO="xenial" TOOL="stegdetect" EXPECTFAIL=1
- DISTRO="xenial" TOOL="stegsolve"
- DISTRO="xenial" TOOL="subbrute"
- DISTRO="xenial" TOOL="taintgrind" EXPECTFAIL=1 ### missing Iop_* declarations
- DISTRO="xenial" TOOL="testdisk"
- DISTRO="xenial" TOOL="tor-browser"
- DISTRO="xenial" TOOL="unicorn"
- DISTRO="xenial" TOOL="veles"
- DISTRO="xenial" TOOL="villoc" EXPECTFAIL=1
- DISTRO="xenial" TOOL="virtualsocket"
- DISTRO="xenial" TOOL="wcc" EXPECTFAIL=1 ### depends on xenial
- DISTRO="xenial" TOOL="xortool"
- DISTRO="xenial" TOOL="xrop" EXPECTFAIL=1
- DISTRO="xenial" TOOL="xspy"
- DISTRO="xenial" TOOL="yafu"
- DISTRO="xenial" TOOL="z3"
- DISTRO="xenial" TOOL="zsteg" EXPECTFAIL=1
script:
- VIRTUALENVWRAPPER_SCRIPT=/usr/share/virtualenvwrapper/virtualenvwrapper.sh manage-tools $OPTS test $SUITE
- docker run --rm ctftools lsb_release -a
- docker run -e EXPECTFAIL="$EXPECTFAIL" -e TOOL="$TOOL" --rm ctftools bash -ic 'manage-tools -s -f -v test $TOOL'

View file

@ -3,7 +3,7 @@ maintainer yans@yancomm.net
RUN apt-get update && apt-get install -y build-essential libtool g++ gcc \
texinfo curl wget automake autoconf python python-dev git subversion \
unzip virtualenvwrapper
unzip virtualenvwrapper sudo
RUN useradd -m ctf
COPY .git /home/ctf/tools/.git
@ -22,4 +22,4 @@ RUN bin/ctf-tools-pip install appdirs
RUN echo "workon ctftools" >> /home/ctf/.bashrc
WORKDIR /home/ctf
ENTRYPOINT bash -i
CMD bash -i

25
Dockerfile.xenial Normal file
View file

@ -0,0 +1,25 @@
from ubuntu:xenial
maintainer yans@yancomm.net
RUN apt-get update && apt-get install -y build-essential libtool g++ gcc \
texinfo curl wget automake autoconf python python-dev git subversion \
unzip virtualenvwrapper sudo
RUN useradd -m ctf
COPY .git /home/ctf/tools/.git
RUN chown -R ctf.ctf /home/ctf/tools
RUN echo "ctf ALL=NOPASSWD: ALL" > /etc/sudoers.d/ctf
RUN apt-get update
RUN apt-get -y install git virtualenvwrapper
USER ctf
WORKDIR /home/ctf/tools
RUN git checkout .
RUN bin/manage-tools -s setup
RUN bin/ctf-tools-pip install appdirs
RUN echo "workon ctftools" >> /home/ctf/.bashrc
WORKDIR /home/ctf
CMD bash -i

View file

@ -1,4 +1,4 @@
#!/bin/bash -e
#!/bin/bash -ex
#
# AFL

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex
set -eu -o pipefail
pacman -Syu --noconfirm --needed bison qemu

View file

@ -1,5 +1,13 @@
#!/bin/bash
#!/bin/bash -ex
set -eu -o pipefail
apt-get -y build-dep qemu
apt-get -y install bison
case "$(lsb_release -cs)" in
xenial)
apt-get -y install bison libtool-bin
;;
*)
apt-get -y install bison
;;
esac

View file

@ -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

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex
set -eu -o pipefail
pacman -Syu --noconfirm --needed jre7-openjdk jdk7-openjdk

View file

@ -1,4 +1,12 @@
#!/bin/bash
#!/bin/bash -ex
set -eu -o pipefail
apt-get -y install openjdk-7-jre openjdk-7-jdk
case "$(lsb_release -cs)" in
xenial)
# need to overwrite because of an ubuntu packaging error(!)
apt-get -y -o Dpkg::Options::="--force-overwrite" install openjdk-9-jre openjdk-9-jdk
;;
*)
apt-get -y install openjdk-7-jre openjdk-7-jdk
;;
esac

View file

@ -1,4 +1,4 @@
#!/bin/bash -e
#!/bin/bash -ex
source ctf-tools-venv-activate

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex
set -eu -o pipefail
# for angr

View file

@ -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

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex
set -eu -o pipefail
pacman -Syu --noconfirm --needed jre8-openjdk

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex
set -eu -o pipefail
apt-get install -y default-jre

View file

@ -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

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex
set -eu -o pipefail
apt-get -y install binutils-multiarch-dev

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex
ctf-tools-pip uninstall -y barf pyasmjit
rm -f $VIRTUAL_ENV/bin/BARFgadgets

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex
git clone --depth 1 https://github.com/beefproject/beef

View file

@ -1,4 +1,4 @@
#!/bin/bash -e
#!/bin/bash -ex
pacman -Syu --noconfirm --needed \
ruby python2 ruby-bundler \

View file

@ -1,4 +1,4 @@
#!/bin/bash -e
#!/bin/bash -ex
echo "Need to get ruby with RVM... Unsupported for now"
exit 1

View file

@ -52,7 +52,7 @@ function detect_distribution()
function base_build_setup_debian()
{
PACKAGE_REQS="build-essential libtool g++ gcc texinfo curl wget automake autoconf python python-dev git subversion unzip virtualenvwrapper"
PACKAGE_REQS="build-essential libtool g++ gcc texinfo curl wget automake autoconf python python-dev git subversion unzip virtualenvwrapper lsb-release"
PACKAGE_COUNT=$(echo $PACKAGE_REQS | tr ' ' '\n' | wc -l)
if [ $(dpkg -l $PACKAGE_REQS | grep "^ii" | wc -l) -ne $PACKAGE_COUNT ]
then
@ -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
;;
*)

View file

@ -1,4 +1,4 @@
#!/bin/bash -e
#!/bin/bash -ex
INST_DIR="$PWD"

View file

@ -1,4 +1,11 @@
#!/bin/bash
#!/bin/bash -ex
set -eu -o pipefail
apt-get -y install maven libprotobuf-dev openjdk-7-jre openjdk-7-jdk
case "$(lsb_release -cs)" in
xenial)
apt-get -o Dpkg::Options::="--force-overwrite" -y install maven libprotobuf-dev openjdk-9-jre openjdk-9-jdk
;;
*)
apt-get -y install maven libprotobuf-dev openjdk-7-jre openjdk-7-jdk
;;
esac

View file

@ -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

View file

@ -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

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex
set -eu -o pipefail
pacman -Syu --noconfirm --needed jre7-openjdk

View file

@ -1,4 +1,11 @@
#!/bin/bash
#!/bin/bash -ex
set -eu -o pipefail
apt-get -y install openjdk-7-jre
case "$(lsb_release -cs)" in
xenial)
apt-get -o Dpkg::Options::="--force-overwrite" -y install openjdk-9-jre
;;
*)
apt-get -y install openjdk-7-jre
;;
esac

View file

@ -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

View file

@ -1,4 +1,4 @@
#!/bin/bash -e
#!/bin/bash -ex
PY_TEST_FILE=$(mktemp)
cat << END > $PY_TEST_FILE

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex
ctf-tools-pip uninstall -y capstone || true
ctf-tools-pip3 uninstall -y capstone || true

View file

@ -1,4 +1,4 @@
#!/bin/bash -e
#!/bin/bash -ex
git clone --depth 1 https://github.com/slimm609/checksec.sh
mkdir bin

View file

@ -1,8 +1,10 @@
#!/bin/bash -e
#!/bin/bash -ex
git clone --depth 1 https://github.com/trailofbits/codereason
cd codereason
find . -type f -exec sed -i 's:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain::g' {} \;
./install_vex.sh
# This step fails in travis-ci because of CMake 3.2 not finding Boost, while docker has CMake 2.8 which finds Boost just fine
./make.sh
cd ..

View file

@ -1,4 +1,5 @@
#!/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
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 libboost-all-dev

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex
git clone --depth 1 https://github.com/stasinopoulos/commix.git
mkdir bin

View file

@ -1,4 +1,4 @@
#!/bin/bash -e
#!/bin/bash -ex
git clone --depth 1 https://github.com/SpiderLabs/cribdrag

View file

@ -1,4 +1,4 @@
#!/bin/bash -e
#!/bin/bash -ex
FILE=cross2-20130826.tgz
INSTALL_DIR=$PWD

View file

@ -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

View file

@ -1,3 +1,3 @@
#!/bin/bash -e
#!/bin/bash -ex
pacman -Syu --noconfirm gperf flex bison help2man gawk ncurses

View file

@ -1,3 +1,3 @@
#!/bin/bash -e
#!/bin/bash -ex
apt-get install -y gperf flex bison help2man gawk libncurses5-dev

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex
[ -e x-tools ] && chmod -R u+w x-tools
rm -rf crosstools-ng

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex
wget -O - http://www.bay12games.com/dwarves/df_43_05_linux.tar.bz2 | tar xj

View file

@ -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

View file

@ -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

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex
set -eu -o pipefail
pacman -Syu --noconfirm --needed curl gnutls

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex
set -eu -o pipefail
apt-get -y install libcurl4-gnutls-dev

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex
mkdir bin
git clone --depth 1 https://github.com/maurosoria/dirsearch.git

View file

@ -1,14 +1,18 @@
#!/bin/bash
#!/bin/bash -ex
wget http://www.hsc.fr/ressources/outils/dislocker/download/dislocker.tar.bz2
tar xjf dislocker.tar.bz2
cd dislocker/src
sed 's?override LDFLAGS.*?& -Wl,-rpath,'`pwd`'?' < Makefile > Makefile.tmp && mv Makefile.tmp Makefile
wget -O dislocker.tar.gz https://github.com/Aorimn/dislocker/archive/v0.7.1.tar.gz
tar xf dislocker.tar.gz
DISLOCKERDIR=$(ls -d dislocker-*)
cd $DISLOCKERDIR
cmake .
make -j $(nproc)
cd ../..
cd ..
mkdir bin
cd bin
ln -s ../dislocker/src/dislocker-bek .
ln -s ../dislocker/src/dislocker-file .
ln -s ../dislocker/src/dislocker-fuse .
ln -s ../dislocker/src/dislocker-metadata .
ls -l ../$DISLOCKERDIR/src/
ln -s ../$DISLOCKERDIR/src/dislocker-bek .
ln -s ../$DISLOCKERDIR/src/dislocker-file .
ln -s ../$DISLOCKERDIR/src/dislocker-fuse .
ln -s ../$DISLOCKERDIR/src/dislocker-metadata .

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex
set -eu -o pipefail
pacman -Syu --noconfirm --needed mbedtls fuse

View file

@ -1,4 +1,11 @@
#!/bin/bash
#!/bin/bash -ex
set -eu -o pipefail
apt-get -y install libfuse-dev libpolarssl-dev
case "$(lsb_release -cs)" in
xenial)
apt-get -y install gcc cmake make libfuse-dev libmbedtls-dev ruby-dev
;;
*)
apt-get -y install gcc cmake make libfuse-dev libpolarssl-dev ruby-dev
;;
esac

View file

@ -1,4 +1,4 @@
#!/bin/bash -e
#!/bin/bash -ex
git clone --depth 1 https://github.com/BR903/ELFkickers
cd ELFkickers

View file

@ -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 .

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex
set -eu -o pipefail
apt-get install -y libqt5widgets5

View file

@ -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

View file

@ -1,4 +1,4 @@
#!/bin/bash -e
#!/bin/bash -ex
git clone --depth 1 https://github.com/kholia/exetractor-clone.git

View file

@ -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

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex
set -eu -o pipefail
apt-get -y install libgmp3-dev libncurses5-dev

View file

@ -1,4 +1,4 @@
#!/bin/bash -e
#!/bin/bash -ex
ctf-tools-pip uninstall -y featherduster || true

View file

@ -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

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex
set -eu -o pipefail
pacman -Syu --noconfirm --needed zlib xz python2-magic

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex
set -eu -o pipefail
apt-get -y install liblzma-dev python-magic zlib1g-dev

View file

@ -1,3 +1,3 @@
#!/bin/bash -e
#!/bin/bash -ex
ctf-tools-pip3 install --upgrade 'git+https://github.com/ALSchwalm/foresight.git'

View file

@ -1,3 +1,3 @@
#!/bin/bash -e
#!/bin/bash -ex
ctf-tools-pip3 uninstall -y foresight || true

View file

@ -1,4 +1,4 @@
#!/bin/bash -e
#!/bin/bash -ex
git clone --depth=1 http://git.fedorahosted.org/git/gdb-heap.git || true

View file

@ -1,3 +1,3 @@
#!/bin/bash -e
#!/bin/bash -ex
apt-get install -y libc6-dbg

View file

@ -1,4 +1,4 @@
#!/bin/bash -e
#!/bin/bash -ex
dnf install -y dnf-plugins-core
dnf debuginfo-install -y glibc

View file

@ -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

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex
set -eu -o pipefail
pacman -Syu --needed --noconfirm texinfo

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex
set -eu -o pipefail
apt-get -y install texinfo

View file

@ -1,3 +1,3 @@
#!/bin/bash -e
#!/bin/bash -ex
dnf install -y texinfo

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex
set -eu -o pipefail
git clone --depth 1 https://github.com/hugsy/gef.git

View file

@ -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

View file

@ -1,3 +1,3 @@
#!/bin/bash -e
#!/bin/bash -ex
apt-get -y install tofrodos

View file

@ -1,4 +1,4 @@
#!/bin/bash -e
#!/bin/bash -ex
PREFIX=$PWD

View file

@ -1,3 +1,3 @@
#!/bin/bash -e
#!/bin/bash -ex
pacman -Syu --noconfirm --needed openssl

View file

@ -1,3 +1,3 @@
#!/bin/bash -e
#!/bin/bash -ex
apt-get install -y libssl-dev pkg-config

View file

@ -1,4 +1,4 @@
#!/bin/bash -e
#!/bin/bash -ex
git clone --depth 1 https://github.com/mheistermann/HashPump-partialhash.git
cd HashPump-partialhash

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex
set -eu -o pipefail
pacman -Syu --noconfirm --needed openssl

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex
set -eu -o pipefail
apt-get -y install libssl-dev

View file

@ -1,4 +1,4 @@
#!/bin/bash -e
#!/bin/bash -ex
git clone --depth 1 https://github.com/bwall/HashPump.git
cd HashPump

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex
set -eu -o pipefail
pacman -Syu --noconfirm --needed openssl

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex
set -eu -o pipefail
apt-get -y install libssl-dev

View file

@ -1,3 +1,3 @@
#!/bin/bash -e
#!/bin/bash -ex
ctf-tools-pip uninstall -y hashpumpy || true

View file

@ -1,4 +1,4 @@
#!/bin/bash -e
#!/bin/bash -ex
[ -e honggfuzz ] || git clone --depth 1 https://github.com/google/honggfuzz
cd honggfuzz

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex
set -eu -o pipefail
apt-get install libbfd-dev libunwind8-dev

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex
set -eu -o pipefail
apt-get install -y libbfd-dev libunwind8-dev

View file

@ -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

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex
set -eu -o pipefail
pacman -Syu --noconfirm --needed jre7-openjdk

View file

@ -1,4 +1,12 @@
#!/bin/bash
#!/bin/bash -ex
set -eu -o pipefail
apt-get -y install openjdk-7-jre
case "$(lsb_release -cs)" in
xenial)
apt-get -o Dpkg::Options::="--force-overwrite" -y install openjdk-9-jre
;;
*)
apt-get -y install openjdk-7-jre
;;
esac

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex
set -e -o pipefail
git clone --depth 1 https://github.com/keystone-engine/keystone.git

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex
set -eu -o pipefail
pacman -Syu --needed --noconfirm cmake

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex
set -eu -o pipefail
apt-get -y install build-essential cmake

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex
set -e -o pipefail
source ctf-tools-venv-activate

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex
set -e -o pipefail
source ctf-tools-venv-activate

View file

@ -1,4 +1,4 @@
#!/bin/bash -e
#!/bin/bash -ex
# move to ctftools virtual env
source ctf-tools-venv-activate

View file

@ -1,3 +1,3 @@
#!/bin/bash -e
#!/bin/bash -ex
apt-get install -y libc6-dbg

View file

@ -1,4 +1,4 @@
#!/bin/bash -e
#!/bin/bash -ex
dnf install -y dnf-plugins-core
dnf debuginfo-install -y glibc

View file

@ -1,4 +1,4 @@
#!/bin/bash -e
#!/bin/bash -ex
git clone --depth 1 https://github.com/devttys0/littleblackbox.git
INST_DIR=$PWD

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex
set -eu -o pipefail
pacman -Syu --noconfirm --needed openssl libpcap sqlite

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex
set -eu -o pipefail
apt-get -y install libssl-dev libpcap-dev libsqlite3-dev

View file

@ -1,3 +1,3 @@
#!/bin/bash -e
#!/bin/bash -ex
ctf-tools-pip install --upgrade packaging mitmproxy

Some files were not shown because too many files have changed in this diff Show more