21 lines
477 B
Docker
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"]
|