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 tokenBOARD_URL: Scoreboard URLTEAM_TOKEN: Your team token
Packmate
PACKMATE_DB_PASSWORD: Database passwordNET_INTERFACE: Network interface to monitorPACKMATE_LOCAL_IP: Local IP addressWEB_LOGIN: Web interface loginWEB_PASSWORD: Web interface password
Farm
FARM_DB_PASS: Database passwordFARM_WEB_PASSWORD: Web interface passwordNUM_TEAMS: Number of teamsIP_TEAM_BASE: IP base for teamsFARM_API_TOKEN: API token
Firegex
FIREGEX_PORT: Port for Firegex (default: 5000)
Post-Setup
After running the setup script:
- Review generated .env files in each service directory
- Start services via controller API or web dashboard
- Access web dashboards on configured ports