Dockerfile (323B)
1# run via docker compose :) 2 3FROM ubuntu:22.04 4 5RUN apt-get update 6 7RUN apt-get -y install socat 8 9RUN useradd -d /home/ctf/ -m -p ctf -s /bin/bash ctf 10RUN echo "ctf:ctf" | chpasswd 11 12WORKDIR /home/ctf 13 14COPY rev2 . 15COPY flag.txt . 16 17USER ctf 18CMD socat -ddd TCP4-LISTEN:1024,fork,reuseaddr exec:./rev2,pty,echo=0,raw,iexten=0