From b474fd355ce8c9a5ef982498edf404d838e4835b Mon Sep 17 00:00:00 2001 From: nico Date: Tue, 10 Oct 2023 21:39:43 +0200 Subject: [PATCH] dockerfile --- Dockerfile | 22 ++++++++++++++++++++++ {tpattempt => src}/pyscript | 0 tpattempt/vun.c => src/vulnerable.c | 0 3 files changed, 22 insertions(+) create mode 100644 Dockerfile rename {tpattempt => src}/pyscript (100%) mode change 100755 => 100644 rename tpattempt/vun.c => src/vulnerable.c (100%) diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ceace59 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +FROM debian:bullseye-slim + +# Update package repositories and install necessary packages +RUN apt-get update && apt-get install -y \ + python3 \ + clang \ + libc6-dev \ + python3-pip \ + gdb \ + nano \ + vim + +COPY src /root/src + +# Install Python packages +RUN python3 -m pip install \ + capstone \ + pwntools + +WORKDIR /root + +ENTRYPOINT ["/bin/bash"] \ No newline at end of file diff --git a/tpattempt/pyscript b/src/pyscript old mode 100755 new mode 100644 similarity index 100% rename from tpattempt/pyscript rename to src/pyscript diff --git a/tpattempt/vun.c b/src/vulnerable.c similarity index 100% rename from tpattempt/vun.c rename to src/vulnerable.c