Files
CTFd-owl-examples/pwn-task/service/docker-entrypoint.sh
T

9 lines
148 B
Bash

#!/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"