Files
ad-infr-control/setuper
2025-12-02 20:08:08 +03:00
..
2025-12-02 14:01:34 +03:00
2025-12-02 20:08:08 +03:00

A/D Infrastructure Setuper

This script automates the installation and configuration of:

  • Packmate: Traffic analysis tool
  • moded_distructive_farm: Attack/defense farm
  • Firegex: Flag submission tool

Usage

Interactive Mode

./setup.sh

With Environment Variables

export BOARD_URL="http://10.60.0.1"
export TEAM_TOKEN="your-team-token"
export NUM_TEAMS="10"
./setup.sh

Environment Variables

Common

  • SERVICES_DIR: Directory for services (default: ../services)
  • CONTROLLER_API: Controller API URL (default: http://localhost:8001)
  • SECRET_TOKEN: API authentication token
  • BOARD_URL: Scoreboard URL
  • TEAM_TOKEN: Your team token

Packmate

  • PACKMATE_DB_PASSWORD: Database password
  • NET_INTERFACE: Network interface to monitor
  • PACKMATE_LOCAL_IP: Local IP address
  • WEB_LOGIN: Web interface login
  • WEB_PASSWORD: Web interface password

Farm

  • FARM_DB_PASS: Database password
  • FARM_WEB_PASSWORD: Web interface password
  • NUM_TEAMS: Number of teams
  • IP_TEAM_BASE: IP base for teams
  • FARM_API_TOKEN: API token

Firegex

  • FIREGEX_PORT: Port for Firegex (default: 5000)

Post-Setup

After running the setup script:

  1. Review generated .env files in each service directory
  2. Start services via controller API or web dashboard
  3. Access web dashboards on configured ports