Skip to content

Jimmy01240397/CTF-Instancer

Repository files navigation

CTF-Instancer

Run

  1. Edit docker-compose.yml
volumes:
- ./chal:/app/chal:ro
environment:
- PORT=8000
- SESSIONNAME=session
- DBNAME=instance.db
# Your Instancer Title
- TITLE=
# Instance port range
- MINPORT=30000
- MAXPORT=31000
# Instance Validity
- VALIDITY=3m
# Instance subnet prefix
- PREFIX=29
# Instance subnet pool
- SUBNETPOOL=10.200.0.0/16
# Challenge Dir
- CHALDIR=chal
- BASESCHEME=http
# Base host name. For example use aaa.com you will get <id>.aaa.com for instance host
- BASEHOST=
- CAPTCHA_SITE_KEY=
- CAPTCHA_SECRET_KEY=
# CTFD URL
- CTFDURL=
- PROXYMODE=true
- NCMODE=false
ports:
# Same as PORT environment
- 8000:8000
  1. Move your challenge to CHALDIR

  2. Challenge docker-compose.yml example

version: '3'
services:
  chal:
    build: .
    ports:
    # Instancer will use ${PORT} to control your port
    - ${PORT}:11111
    volumes:
    - /tmp/${ID}/userid:/userid:ro
    networks:
      default:

networks:
  default:
    ipam:
      config:
      # Instancer will use ${SUBNET<Number>} to control your subnet
      - subnet: ${SUBNET0}
  1. Run docker compose up -d and wait for 2 minute

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published