From febf95593298ab9fb8241ffb0c977806a30b76e5 Mon Sep 17 00:00:00 2001 From: P4T12ICK Date: Mon, 31 Jul 2023 17:17:26 +0200 Subject: [PATCH] Guacamole improvements --- docs/source/Control_Attack_Range.md | 4 ++-- .../files/atomic_red_team_execution_inputs.conf | 6 ++++++ .../ansible/roles/guacamole/tasks/guacamole_server_post.yml | 5 +++++ .../ansible/roles/guacamole/templates/user-mapping.xml | 2 ++ terraform/aws/{ressources.tf => resources.tf} | 0 5 files changed, 15 insertions(+), 2 deletions(-) rename terraform/aws/{ressources.tf => resources.tf} (100%) diff --git a/docs/source/Control_Attack_Range.md b/docs/source/Control_Attack_Range.md index 2383ce61..7b28fdb3 100644 --- a/docs/source/Control_Attack_Range.md +++ b/docs/source/Control_Attack_Range.md @@ -8,7 +8,7 @@ python attack_range.py build ``` ## Destroy -Destroys an Attack Range and deletes/deprovision all used ressources +Destroys an Attack Range and deletes/deprovision all used resources ``` python attack_range.py destroy ``` @@ -26,7 +26,7 @@ python attack_range.py resume ``` ## Show -Shows the ressources of an Attack Range +Shows the resources of an Attack Range ``` python attack_range.py show ``` \ No newline at end of file diff --git a/packer/ansible/roles/windows_universal_forwarder/files/atomic_red_team_execution_inputs.conf b/packer/ansible/roles/windows_universal_forwarder/files/atomic_red_team_execution_inputs.conf index 95400eef..63581706 100644 --- a/packer/ansible/roles/windows_universal_forwarder/files/atomic_red_team_execution_inputs.conf +++ b/packer/ansible/roles/windows_universal_forwarder/files/atomic_red_team_execution_inputs.conf @@ -1,3 +1,9 @@ [monitor://C:\AtomicRedTeam\atc_execution.csv] disabled = false +source = atomic_red_team index = attack + +[monitor://C:\Tools\PurpleSharp\*.json] +disabled = false +source = purple_sharp +index = attack \ No newline at end of file diff --git a/terraform/ansible/roles/guacamole/tasks/guacamole_server_post.yml b/terraform/ansible/roles/guacamole/tasks/guacamole_server_post.yml index acb23f7e..c4849208 100644 --- a/terraform/ansible/roles/guacamole/tasks/guacamole_server_post.yml +++ b/terraform/ansible/roles/guacamole/tasks/guacamole_server_post.yml @@ -28,6 +28,11 @@ dest: /etc/guacamole/user-mapping.xml when: cloud_provider != "local" +- name: Create a new folder + file: + path: /home/ubuntu/shared-folder + state: directory + - name: Copy user-mapping-local.xml template: src: user-mapping-local.xml diff --git a/terraform/ansible/roles/guacamole/templates/user-mapping.xml b/terraform/ansible/roles/guacamole/templates/user-mapping.xml index 94cd5dd1..f9ec159f 100644 --- a/terraform/ansible/roles/guacamole/templates/user-mapping.xml +++ b/terraform/ansible/roles/guacamole/templates/user-mapping.xml @@ -34,6 +34,8 @@ {% endif %} {{attack_range_password}} true + true + /home/ubuntu/shared-folder {% endfor %} diff --git a/terraform/aws/ressources.tf b/terraform/aws/resources.tf similarity index 100% rename from terraform/aws/ressources.tf rename to terraform/aws/resources.tf