Merge pull request #1 from danielhenrymantilla/master

Added a script to create&run the env in a docker container
This commit is contained in:
Angelboy 2018-03-27 01:51:01 +08:00 committed by GitHub
commit cb60f23e44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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