summaryrefslogtreecommitdiffstats
path: root/tools/pwn-docker/Dockerfile
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2024-02-14 22:07:16 -0500
committerMalfurious <m@lfurio.us>2024-02-14 22:07:16 -0500
commitb70b491314e5e0fc36372608ab952fba5e0fdb8d (patch)
treea795d6377eee848033ce7e3467df478b6bfb8ec7 /tools/pwn-docker/Dockerfile
parent4b93dc36dc685e4dcddd9753eb9570feca4cfe40 (diff)
downloadlib-des-gnux-b70b491314e5e0fc36372608ab952fba5e0fdb8d.tar.gz
lib-des-gnux-b70b491314e5e0fc36372608ab952fba5e0fdb8d.zip
Add pwn Docker image
Intended to provide a base environment for working with binary exploitation challenges and enable process isolation of said binaries. Signed-off-by: Malfurious <m@lfurio.us>
Diffstat (limited to '')
-rw-r--r--tools/pwn-docker/Dockerfile39
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"]