Skip to content

Commit

Permalink
Creating a default HTTPS listener instead of HTTP in tuoni role
Browse files Browse the repository at this point in the history
  • Loading branch information
AllRWeak authored and Lauri-L committed Nov 21, 2024
1 parent d68be51 commit a8176bf
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions nova/core/roles/tuoni/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,18 @@ tuoni_users: # The list of users that will be created in Tuoni pass a custom lis
- SEND_COMMANDS
- VIEW_RESOURCES # this default permission, cannot be removed

# The host that will be used for the default reverse HTTP listener
tuoni_callbock_hosts:
- "{{ tuoni_fqdn }}"

tuoni_listeners: # The list of listeners that will be created in Tuoni pass a custom list as a variable to override this default list
- name: HttpListener
- name: HTTPS-Listener
plugin: shelldot.listener.agent-reverse-http
configuration:
port: 80
port: 443
bindToPort: null
httpCallbacks:
- hosts:
- "{{ tuoni_fqdn }}"
- hosts: "{{ tuoni_callbock_hosts }}"
getUri: /get
postUri: /post
stagedUri: /payload
Expand All @@ -37,18 +40,18 @@ tuoni_listeners: # The list of listeners that will be created in Tuoni pass a cu
metadataCookieName: JWT_SESSION
metadataPrefix: metaPrefix
metadataSuffix: metaSuffix
https: false
https: true
sleep: 5
sleepRandom: 5

tuoni_payloads: # The list of payloads that will be created in Tuoni pass a custom list as a variable to override this default list
- payloadTemplateId: shelldot.payload.windows-x64
configuration:
type: EXECUTABLE
listenerId: "{{ tuoni_created_listeners.json.values() | selectattr('name', 'equalto', 'HttpListener') | map(attribute='id') | first }}"
listenerId: "{{ tuoni_created_listeners.json.values() | selectattr('name', 'equalto', 'HTTPS-Listener') | map(attribute='id') | first }}"
encrypted: true
- payloadTemplateId: shelldot.payload.windows-x64
configuration:
type: DLL
listenerId: "{{ tuoni_created_listeners.json.values() | selectattr('name', 'equalto', 'HttpListener') | map(attribute='id') | first }}"
listenerId: "{{ tuoni_created_listeners.json.values() | selectattr('name', 'equalto', 'HTTPS-Listener') | map(attribute='id') | first }}"
encrypted: true

0 comments on commit a8176bf

Please sign in to comment.