Last active
May 5, 2020 14:43
-
-
Save cimi/3d15d980c98669c3425b9d09f92f21a5 to your computer and use it in GitHub Desktop.
Dockerfile with useful tools for CTFs, based on https://github.com/LiveOverflow/pwn_docker_example/blob/master/ctf/Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# docker build -t ctf:ubuntu19.10 . | |
# docker run --rm -v $PWD:/pwd --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -d --name ctf -i ctf:ubuntu19.10 | |
# docker exec -it ctf /bin/bash | |
FROM ubuntu:19.10 | |
ENV LC_CTYPE C.UTF-8 | |
ENV DEBIAN_FRONTEND=noninteractive | |
RUN dpkg --add-architecture i386 && \ | |
apt-get update && \ | |
apt-get install -y build-essential jq strace ltrace curl wget rubygems gcc dnsutils netcat gcc-multilib net-tools vim gdb gdb-multiarch \ | |
python python3 python3-pip python3-dev libssl-dev libffi-dev wget git make procps libpcre3-dev libdb-dev libxt-dev libxaw7-dev \ | |
python-pip libc6:i386 libncurses5:i386 libstdc++6:i386 libgmp3-dev libmpc-dev software-properties-common bsdmainutils libxrender1 && \ | |
pip install capstone requests pwntools r2pipe && \ | |
pip3 install pwntools keystone-engine unicorn capstone ropper && \ | |
pip3 install opencv-python tensorflow keras && \ | |
add-apt-repository ppa:longsleep/golang-backports && apt update && apt-get install -y golang-go && \ | |
mkdir tools && cd tools && \ | |
git clone https://github.com/JonathanSalwan/ROPgadget && \ | |
git clone https://github.com/radare/radare2 && cd radare2 && sys/install.sh && \ | |
cd .. && git clone https://github.com/pwndbg/pwndbg && cd pwndbg && git checkout stable && ./setup.sh && \ | |
cd .. && git clone https://github.com/niklasb/libc-database && cd libc-database && ./get && \ | |
cd .. && git clone https://github.com/Ganapati/RsaCtfTool.git && cd RsaCtfTool && pip3 install -r "requirements.txt" && \ | |
gem install one_gadget |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment