Created
August 4, 2020 01:20
-
-
Save caphosra/2ff4255b90ef4ade4b66bc170d15051d to your computer and use it in GitHub Desktop.
Docker image for CTF
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
| 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