Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/picatz/competition-practice-env
🌩 Cloud infrastructure-as-code for attack and defense CTFs on GCP
https://github.com/picatz/competition-practice-env
cloud ctf-platform google-cloud-platform linux packer terraform windows
Last synced: about 1 month ago
JSON representation
🌩 Cloud infrastructure-as-code for attack and defense CTFs on GCP
- Host: GitHub
- URL: https://github.com/picatz/competition-practice-env
- Owner: picatz
- License: mit
- Created: 2019-01-24T22:47:40.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-04T22:02:22.000Z (almost 2 years ago)
- Last Synced: 2024-06-21T15:47:49.015Z (5 months ago)
- Topics: cloud, ctf-platform, google-cloud-platform, linux, packer, terraform, windows
- Language: Go
- Homepage:
- Size: 16.9 MB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# competition-practice-env
[![Actions Status](https://github.com/picatz/competition-practice-env/workflows/CI/badge.svg)](https://github.com/picatz/competition-practice-env/actions)
[![Open in Cloud Shell](https://gstatic.com/cloudssh/images/open-btn.svg)](https://ssh.cloud.google.com/cloudshell/editor?cloudshell_git_repo=https%3A%2F%2Fgithub.com%2Fpicatz%2Fcompetition-practice-env&open_in_editor=README.md)
Read the wiki [here](https://github.com/picatz/competition-practice-env/wiki).
The scoring engine application, like the rest of the infrastructure, is [defined as HCL](https://github.com/picatz/competition-practice-env/blob/master/scoring_engine/template/service_registry.hcl):
```hcl
server {
ip = "0.0.0.0"
port = "6767"
}scoring_interval = "1m"
state {
save_interval = "5m"
save_path = "/tmp/service-registry.json"
}team "team-1" {
service "http" {
protocol = "tcp"
ip = "192.168.1.2"
port = 80
}service "ssh" {
protocol = "tcp"
ip = "192.168.1.3"
port = 22
}service "rdp" {
protocol = "tcp"
ip = "192.168.1.4"
port = 3389
}
}team "team-2" {
service "http" {
protocol = "tcp"
ip = "192.168.2.2"
port = 80
}service "ssh" {
protocol = "tcp"
ip = "192.168.2.3"
port = 22
}service "rdp" {
protocol = "tcp"
ip = "192.168.2.4"
port = 3389
}
}```