Dockerfile (393B)
1# docker build -t bank . && docker run -p 1024:1024 --rm -it bank 2FROM ubuntu@sha256:50ec5c3a1814f5ef82a564fae94f6b4c5d550bb71614ba6cfe8fadbd8ada9f12 3 4RUN useradd --create-home --shell /bin/bash ctf 5 6COPY docker-stuff/ynetd /sbin/ 7COPY flag / 8COPY vuln /home/ctf/ 9 10RUN chmod 0555 /sbin/ynetd /home/ctf/vuln && \ 11 chmod 0444 /flag 12 13EXPOSE 1024 14CMD [ "ynetd", "-u", "ctf", "/home/ctf/vuln" ]