ctf-tools/stego-toolkit/install-root-debian
2019-02-10 11:38:35 -07:00

26 lines
613 B
Bash
Executable file

#!/bin/bash -ex
# Install docker if needed
set +e
if which docker 2> /dev/null > /dev/null ; then
set -e
else
set -e
apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
apt-get install docker-ce -y
fi
# Pull the container
docker pull dominicbreuker/stego-toolkit:latest
# To run the container, execute:
# sudo docker run -it dominicbreuker/stego-toolkit /bin/bash