Files
ad-infr-control/setuper/README.md
ilyastar9999 cffbd77b74 init
2025-12-02 14:01:34 +03:00

55 lines
1.3 KiB
Markdown

# 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
```bash
./setup.sh
```
### With Environment Variables
```bash
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