blob: 97e82912db86dc4abd60cc7c18ffe8285eaa53a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# Stolen from https://github.com/LiveOverflow/pwn_docker_example/blob/master/challenge/Dockerfile
# docker build -t suckless2 .
# docker run -d -p 8089:8089 --restart=always --name suckless2 suckless2
FROM ubuntu:20.04
RUN apt-get update
RUN useradd -d /home/ctf/ -m -p ctf -s /bin/bash ctf
RUN echo "ctf:ctf" | chpasswd
WORKDIR /home/ctf
COPY suckless2 .
COPY ynetd .
RUN chown -R root:root /home/ctf
USER ctf
EXPOSE 8089
CMD ./ynetd -p 8089 ./suckless2
|