A docker image to hold misc challenges in ctf war
Please check *.Dockerfile
TODO
Key | Default Value | Description |
---|---|---|
FLAG | (empty) | Flag save in /home/ctf/flag |
COMMAND | ./app.js | Socat Exec Command |
EXTRA | (empty) | Socat Exec Command Extra |
Maybe you can modify /start.sh
exec socat -v tcp-listen:10000,fork,reuseaddr,su=ctf EXEC:"$COMMAND"$EXTRA
- src 网站源码
- app.js
- package.json This is used in Dockerfile(require)
- ...etc
- Dockerfile
- docker-compose.yml
Dockerfile
FROM ctfhub/base_misc_socat_nodejs
# ENV COMMAND=./app.js
COPY src/app.js /home/ctf/app.js
# COPY _files/flag.sh /flag.sh