Skip to content

Instantly share code, notes, and snippets.

@caphosra
Created August 4, 2020 01:20
Show Gist options
  • Select an option

  • Save caphosra/2ff4255b90ef4ade4b66bc170d15051d to your computer and use it in GitHub Desktop.

Select an option

Save caphosra/2ff4255b90ef4ade4b66bc170d15051d to your computer and use it in GitHub Desktop.
Docker image for CTF
FROM ubuntu:latest
RUN \
########################################################
#
# Basic tools
#
########################################################
cd /; \
apt update; \
apt upgrade -y; \
apt install -y \
build-essential \
python3 \
wget; \
python3 -m pip install --upgrade pip; \
########################################################
#
# pwntools (https://github.com/Gallopsled/pwntools)
#
########################################################
python3 -m pip install --upgrade pwntools; \
########################################################
#
# RSA CTF Tool (https://github.com/Ganapati/RsaCtfTool)
#
########################################################
cd ~; \
apt install -y \
git \
libgmp3-dev \
libmpc-dev; \
git clone https://github.com/Ganapati/RsaCtfTool.git; \
pip3 install -r "requirements.txt"; \
apt remove -y --purge \
git; \
########################################################
#
# radare2 (https://github.com/radareorg/radare2)
#
########################################################
apt install -y \
radare2; \
########################################################
#
# Clean waste
#
########################################################
apt clean;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment