Skip to content

kamchatskiy/ADPack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ADPack

Pack of tools for Attack-Defense CTF competitions

Tools

  • Portainer: GUI service for managing docker containers
    • Standalone
    • Agent: in case you have an own local Portainer instance running
  • Code-server: Remote development
  • Safeline: Web Application Firewall (WAF)
  • Caronte: Traffic sniffer
  • Culhwch: Exploit farm

Setup

On a virtual machine

  1. Clone repository

    cd /home && git clone --single-branch https://github.com/kamchatskiy/ADPack adpack
  2. Update .env file

  3. Configure docker compose files. You need to open game services' ports in Safeline's docker-compose file Example:

    name: safeline
    
    services:
      mgt:
        # !!!
        ports:
          - 20002:1443
          - 3000:3000 # if game services listen 3000 port
    
  4. Run with:

    docker compose --env-file .env --profile all up -d

Profiles

You can choose what service to start using compose profiles

Specify them like docker compose --profile profile1 --profile profile2 ...

  • all - run all tools available
  • portainer_agent
  • portainer_app
  • culhwch
  • caronte
  • code

Post-Setup

Safeline

  1. Configure Safeline creds

    docker exec safeline-mgt resetadmin
  2. Patch game services so they are in safeline-ce network and don't have any published ports

    services:
      service:
        ...
        networks:
            safeline-ce:
        ports: # remove this
            - 3000:3000 # remove this
        ...
    networks:
      safeline-ce:
        external: true
  3. Check official guide for configuration for the next steps

Port mapping

Service Port
Portainer 20000
Portainer Agent 20001
SafeLine 20002
Culhwch 20003
Caronte 20004
Code-server 20005

About

Admin tool suite for Attack-Defense CTF

Resources

License

Stars

Watchers

Forks