-
Notifications
You must be signed in to change notification settings - Fork 19
/
Dockerfile
47 lines (40 loc) · 1.3 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
FROM ubuntu:20.04
MAINTAINER u1f383
ENV DEBIAN_FRONTEND=noninteractive
ENV LC_ALL=en_US.UTF-8
RUN apt update && \
apt install -yq gcc && \
apt install -yq gdb && \
apt install -yq git && \
apt install -yq ruby-dev && \
apt install -yq vim-gtk3 && \
apt install -yq fish && \
apt install -yq glibc-source && \
apt install -yq make && \
apt install -yq gawk && \
apt install -yq bison && \
apt install -yq libseccomp-dev && \
apt install -yq tmux && \
apt install -yq wget && \
apt install -yq locales && \
locale-gen en_US.UTF-8
# compile glibc-2.31
RUN cd /usr/src/glibc && \
tar xvf glibc-2.31.tar.xz && \
mkdir glibc_dbg && \
cd glibc_dbg && \
../glibc-2.31/configure --prefix $PWD --enable-debug && \
make -j4
# install pwndbg
RUN git clone https://github.com/pwndbg/pwndbg ~/pwndbg && \
cd ~/pwndbg && \
./setup.sh
# install pwngdb
RUN git clone https://github.com/scwuaptx/Pwngdb.git ~/Pwngdb && \
cat ~/Pwngdb/.gdbinit >> ~/.gdbinit && \
sed -i "s/source ~\/peda\/peda.py//g" ~/.gdbinit
RUN pip3 install pwntools==4.4.0
RUN gem install seccomp-tools one_gadget
RUN ln -s /usr/local/lib/python3.8/dist-packages/bin/ROPgadget /bin/ROPgadget
RUN echo "set-option -g default-shell /bin/fish" > /root/.tmux.conf
CMD ["/bin/fish"]