Skip to content

Instantly share code, notes, and snippets.

@cimi
Last active May 5, 2020 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cimi/3d15d980c98669c3425b9d09f92f21a5 to your computer and use it in GitHub Desktop.
Save cimi/3d15d980c98669c3425b9d09f92f21a5 to your computer and use it in GitHub Desktop.
# 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