-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
94 lines (78 loc) · 2.02 KB
/
Dockerfile
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
FROM ubuntu:22.04
ENV PATH $PATH:/bin
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y tzdata
# timezone setting
ENV TZ=Asia/Tokyo
# base tools
RUN apt-get update && \
apt-get -y upgrade && \
apt-get install -y \
wget \
curl \
cmake \
binutils \
build-essential \
libssl-dev \
gdb \
ltrace \
strace \
socat \
gcc \
g++ \
ruby \
git \
python3-pip \
sudo \
gcc-multilib \
netcat \
bsdmainutils \
xxd
# steg
RUN apt-get update && \
apt-get install -y \
exiftool \
steghide \
foremost \
pngcheck
# tor
RUN apt-get update && \
apt-get install -y \
torsocks
RUN gem install one_gadget
RUN python3 -m pip install -U pip
# pwn, rev, crypto
RUN pip3 install pwntools angr uncompyle6 decompyle3 pycrypto
# python2.7
RUN apt update && \
apt install -y python2.7
RUN curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
RUN python2.7 get-pip.py
RUN useradd -m -s /bin/bash ubuntu \
&& echo 'ubuntu ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/ubuntu
ENV HOME /home/ubuntu
WORKDIR /home/ubuntu
USER ubuntu
RUN git clone https://github.com/longld/peda.git /home/ubuntu/peda && \
git clone https://github.com/scwuaptx/Pwngdb.git /home/ubuntu/Pwngdb && \
cp /home/ubuntu/Pwngdb/.gdbinit /home/ubuntu/
# install radare2
RUN git clone https://github.com/radareorg/radare2 && /home/ubuntu/radare2/sys/install.sh
# # volatility
# RUN git clone https://github.com/volatilityfoundation/volatility.git
# WORKDIR /home/ubuntu/volatility
# RUN python2.7 setup.py build install
# RUN apt update -y && \
# apt install python2.7-dev -y
# RUN pip2 install pycrypto distorm3==3.4.4
WORKDIR /home/ubuntu
### WIP
# wasm analyze
# RUN git clone –recursive thttps://github.com/WebAssembly/wabt && git submodule update --init
# WORKDIR /home/ubuntu/wabt
# RUN make
# pyc analyze
# RUN git clone https://github.com/zrax/pycdc.git
# WORKDIR /home/ubuntu/pycdc
# RUN cmake CMakeLists.txt && make
CMD ["bash"]