commit
Some checks failed
Build to Gitea Registry / build-push (push) Has been cancelled

This commit is contained in:
clxhzg
2025-12-01 17:21:55 +08:00
commit 73d1ec7317
8 changed files with 199 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
#!/bin/sh
# Get the user
user=$(ls /home)
# Check the environment variables for the flag and assign to INSERT_FLAG
if [ "$DASFLAG" ]; then
INSERT_FLAG="$DASFLAG"
export DASFLAG=no_FLAG
DASFLAG=no_FLAG
elif [ "$FLAG" ]; then
INSERT_FLAG="$FLAG"
export FLAG=no_FLAG
FLAG=no_FLAG
elif [ "$GZCTF_FLAG" ]; then
INSERT_FLAG="$GZCTF_FLAG"
export GZCTF_FLAG=no_FLAG
GZCTF_FLAG=no_FLAG
else
INSERT_FLAG="flag{TEST_Dynamic_FLAG}"
fi
# 将FLAG写入文件 请根据需要修改
echo $INSERT_FLAG | tee /home/$user/flag
# 赋予程序运行权限
chmod 711 /home/ctf/pwn
/etc/init.d/xinetd start;
sleep infinity;