Ansible Role: Cobalt Strike Teamserver (Ludus)
An Ansible role that installs and spins up a Cobalt Strike Teamserver on a Debian or Ubuntu server.
Warning
Currently support for Windows has not been implemented but with enough demand I am happy to further this
- You need to supply a valid Cobalt Strike license for this to be successful.
Available variables are listed below, along with default values (see defaults/main.yml):
# Utilise this variable to set a password for your teamserver, defaults to 0xRedpoll
ludus_cobaltstrike_teamserver_password: "0xRedpoll"
# If you want to use a custom C2 profile, add it to the files directory and set the variable to the filename (no path)
ludus_cobaltstrike_c2_profile: ""
# Add your Cobalt Strike license into this variable
ludus_cobaltstrike_license: "0000-0000-0000-0000"
None.
- hosts: cobaltstrike_teamserver_host
roles:
- 0xRedpoll.ludus_cobaltstrike_teamserver
vars:
ludus_cobaltstrike_teamserver_password: "0xRedpoll"
ludus_cobaltstrike_c2_profile: ""
ludus_cobaltstrike_license: "0000-0000-0000-0000"You can add the role to your range using the following command in ludus:
ludus ansible role add 0xRedpoll.ludus_cobaltstrike_teamserverand then referencing the role as shown below.
ludus:
- vm_name: "{{ range_id }}-cobaltstrike-teamserver"
hostname: "{{ range_id }}-cobaltstrike"
template: debian-12-x64-server-template
vlan: 20
ip_last_octet: 2
ram_gb: 4
cpus: 4
linux: true
testing:
snapshot: false
block_internet: false
roles:
- 0xRedpoll.ludus_cobaltstrike_teamserver
role_vars:
ludus_cobaltstrike_teamserver_password: "0xRedpoll"
ludus_cobaltstrike_license: "0000-0000-0000-0000"GPLv3