Added a script to create&run the env in a docker container

This commit is contained in:
Daniel Henry-Mantilla 2018-03-26 13:03:09 +02:00
parent 340a58c46c
commit eca9892db0
1 changed files with 18 additions and 0 deletions

18
docker.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/sh
docker build -t hitcon_training - <<DOCKERFILE_EOF || exit 1
from ubuntu
run apt-get update
run apt-get install -y git sudo bash make nano
run dpkg --add-architecture i386
run apt-get update
run git clone https://github.com/scwuaptx/HITCON-Training /tmp/hitcon
workdir /tmp/hitcon
run bash env_setup.sh
run git clone https://github.com/radare/radare2 /tmp/radare2
workdir /tmp/radare2
run sys/install.sh
workdir /tmp/hitcon
cmd bash -i
DOCKERFILE_EOF
docker run -it --rm --cap-add=SYS_PTRACE --security-opt seccomp=unconfined hitcon_training