Skip to content

ctfhub-team/base_misc_socat_nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

基础镜像 Misc Socat NodeJs 12

A docker image to hold misc challenges in ctf war

Usage

Please check *.Dockerfile

Example

TODO

Env Vars

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

Files

  • 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