Files
ctf/2026/cscg/pwn/canopysaurus/Dockerfile
2026-03-09 21:44:25 +01:00

21 lines
477 B
Docker

FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
build-essential \
python3 \
python3-pip \
gdb \
git \
&& rm -rf /var/lib/apt/lists/*
RUN pip3 install pwntools
RUN git clone https://github.com/pwndbg/pwndbg /opt/pwndbg \
&& cd /opt/pwndbg \
&& ./setup.sh
WORKDIR /challenge
COPY ecu_sim.c Makefile ./
COPY flag.txt /flag.txt
RUN make
RUN chmod 444 /flag.txt
EXPOSE 18088
CMD ["/challenge/ecu_sim"]