15 lines
262 B
Bash
15 lines
262 B
Bash
#!/bin/bash
|
|
|
|
echo "$GZCTF_FLAG" > /flag
|
|
chown root:root /flag
|
|
chmod o-r /flag
|
|
|
|
unset GZCTF_FLAG
|
|
|
|
export GZCTF_FLAG="flag in /flag!"
|
|
GZCTF_FLAG="flag in /flag!"
|
|
export FLAG="flag in /flag!"
|
|
echo $FLAG > /home/ctf/flag
|
|
chown ctf:ctf /home/ctf/flag
|
|
rm -rf /flag.sh
|