9 lines
148 B
Bash
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"
|