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