diff options
Diffstat (limited to 'tools/pwn-docker/Dockerfile')
-rw-r--r-- | tools/pwn-docker/Dockerfile | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/tools/pwn-docker/Dockerfile b/tools/pwn-docker/Dockerfile new file mode 100644 index 0000000..885e0ff --- /dev/null +++ b/tools/pwn-docker/Dockerfile @@ -0,0 +1,39 @@ +FROM debian + +ENV DEBIAN_FRONTEND=noninteractive +ENV LANG=en_US.UTF-8 + +RUN apt update \ + && apt full-upgrade --yes \ + && apt install --yes \ + build-essential \ + curl \ + file \ + gcc-multilib \ + gdb \ + git \ + ipython3 \ + locales \ + netcat-traditional \ + procps \ + python3 \ + python3-pip \ + strace \ + #sudo \ + tig \ + vim \ + wget + +RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen \ + #&& echo 'ALL ALL=(ALL:ALL) NOPASSWD: ALL' >/etc/sudoers && chmod 400 /etc/sudoers \ + && echo '#!/bin/sh\n cp /etc/skel/.* $HOME >/dev/null 2>&1\n exec $@' >/etc/skelinit.sh \ + && chmod 755 /etc/skelinit.sh + +RUN git clone --depth 1 https://github.com/radareorg/radare2 /radare2 \ + && /radare2/sys/install.sh + +RUN HOME=/etc/skel bash -c "$(wget https://gef.blah.cat/sh -O -)" + +COPY . /etc/skel/ +ENTRYPOINT ["/etc/skelinit.sh"] +CMD ["/bin/bash"] |