asc.xhack.students_c2 role – Deploy a per-student command-and-control (C2) server
Note
This role is part of the asc.xhack collection (version 2.0.0).
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it use: git clone git@ssh.dev.azure.com:v3/cloudasc/iac-ansible-collections/xhack $HOME/.ansible/collections/ansible_collections/asc/xhack.
To use it in a playbook, specify: asc.xhack.students_c2.
Entry point main – Deploy a per-student command-and-control (C2) server
New in asc.xhack 1.0.0
Synopsis
Deploys one command-and-control server per student in a dedicated subnet, used to attack the eXtreme Hacking lab infrastructure.
Cobalt Strike is installed when a licence is provided, and any malleable C2 profiles placed in the project’s
files/profilesdirectory are copied onto the host.
Parameters
Parameter |
Comments |
|---|---|
Configuration options for the `students_c2` role. |
|
C2 tooling to install on the VM
Choices:
Default: |
|
Cobalt Strike license key - the student id is appended to it per VM |
|
Whether to enable the role Choices:
|
|
Whether to enable monitoring of the VM Choices:
|
|
Size of the VM to deploy (Azure VM size) Default: |
|
Suffix to append to the VM name Default: |