#!/bin/sh echo "${FLAG}" > /flag.txt chmod 644 /flag.txt unset FLAG exec socat -T 30 TCP-LISTEN:1337,reuseaddr,fork EXEC:"su-exec ctf /app/vuln"