-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
58 lines (56 loc) · 1.63 KB
/
Dockerfile
File metadata and controls
58 lines (56 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND noninteractive
ENV PATH="/root/RsaCtfTool:${PATH}"
RUN \
########################################################
#
# Basic tools
#
########################################################
cd /; \
apt update; \
apt upgrade -y; \
apt install -y \
build-essential \
git \
python3 \
python3-pip \
vim \
wget; \
pip3 install -U pip; \
########################################################
#
# radare2 (https://github.com/radareorg/radare2)
#
########################################################
apt install -y \
radare2; \
########################################################
#
# pwntools (https://github.com/Gallopsled/pwntools)
#
########################################################
pip3 install pwntools; \
########################################################
#
# RSA CTF Tool (https://github.com/Ganapati/RsaCtfTool)
#
########################################################
mkdir ~/RsaCtfTool; \
cd ~/RsaCtfTool; \
apt install -y \
libgmp3-dev \
libmpc-dev; \
git clone https://github.com/Ganapati/RsaCtfTool.git .; \
git checkout 08e53aa9e1de8e1cb17f160bf60e7bab8d507fe5; \
pip3 install -r "requirements.txt"; \
rm -rf ./.git/* ./.github/* ./examples/*; \
########################################################
#
# Clean waste
#
########################################################
apt remove -y --purge \
git; \
apt clean; \
rm -rf /var/lib/apt/lists/*;