Got attack box and c2-redirector working
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
---
|
||||
# Common Gophish server configuration tasks
|
||||
|
||||
- name: Configure Gophish servers
|
||||
debug:
|
||||
msg: |
|
||||
Configuring Gophish servers for deployment {{ deployment_id }}
|
||||
Admin port: {{ gophish_admin_port | default('8090') }}
|
||||
Domain: {{ phishing_domain | default(domain) }}
|
||||
|
||||
- name: Install Gophish
|
||||
debug:
|
||||
msg: "Would install and configure Gophish on target hosts"
|
||||
delegate_to: "{{ item }}"
|
||||
loop: "{{ groups['phishing_gophish'] | default([]) }}"
|
||||
when: groups['phishing_gophish'] is defined
|
||||
|
||||
- name: Configure Gophish templates
|
||||
debug:
|
||||
msg: |
|
||||
Would configure Gophish with:
|
||||
- Email template: {{ email_template | default('office365_login') }}
|
||||
- Campaign: {{ campaign_name | default('test-campaign') }}
|
||||
- Sender: {{ sender_name | default('IT Support') }}
|
||||
@@ -0,0 +1,23 @@
|
||||
---
|
||||
# Common MTA front server configuration tasks
|
||||
|
||||
- name: Configure MTA front servers
|
||||
debug:
|
||||
msg: |
|
||||
Configuring MTA front servers for deployment {{ deployment_id }}
|
||||
MTA hostname: {{ mta_hostname | default('mail.' + (phishing_domain | default(domain))) }}
|
||||
SMTP auth user: {{ smtp_auth_user | default('admin') }}
|
||||
|
||||
- name: Install MTA software
|
||||
debug:
|
||||
msg: "Would install and configure MTA (Postfix/Exim) on target hosts"
|
||||
delegate_to: "{{ item }}"
|
||||
loop: "{{ groups['phishing_mta_front'] | default([]) }}"
|
||||
when: groups['phishing_mta_front'] is defined
|
||||
|
||||
- name: Configure DKIM/SPF
|
||||
debug:
|
||||
msg: |
|
||||
Would configure DKIM/SPF records for:
|
||||
- Domain: {{ phishing_domain | default(domain) }}
|
||||
- MTA hostname: {{ mta_hostname | default('mail.' + (phishing_domain | default(domain))) }}
|
||||
@@ -0,0 +1,23 @@
|
||||
---
|
||||
# Common redirector configuration tasks
|
||||
|
||||
- name: Configure redirector servers
|
||||
debug:
|
||||
msg: |
|
||||
Configuring redirector servers for deployment {{ deployment_id }}
|
||||
Backend host: {{ backend_host | default('N/A') }}
|
||||
Redirector type: {{ redirector_type | default('http') }}
|
||||
|
||||
- name: Install redirector software
|
||||
debug:
|
||||
msg: "Would install and configure Apache/Nginx redirectors on target hosts"
|
||||
delegate_to: "{{ item }}"
|
||||
loop: "{{ groups['phishing_redirector'] | default([]) }}"
|
||||
when: groups['phishing_redirector'] is defined
|
||||
|
||||
- name: Configure SSL certificates
|
||||
debug:
|
||||
msg: |
|
||||
Would configure SSL certificates for:
|
||||
- Domain: {{ phishing_domain | default(domain) }}
|
||||
- Let's Encrypt email: {{ letsencrypt_email | default('admin@' + (phishing_domain | default(domain))) }}
|
||||
@@ -0,0 +1,22 @@
|
||||
---
|
||||
# Common web server configuration tasks
|
||||
|
||||
- name: Configure web servers
|
||||
debug:
|
||||
msg: |
|
||||
Configuring web servers for deployment {{ deployment_id }}
|
||||
Phishing hostname: {{ phishing_hostname | default('portal.' + (phishing_domain | default(domain))) }}
|
||||
|
||||
- name: Install web server software
|
||||
debug:
|
||||
msg: "Would install and configure Apache/Nginx web servers on target hosts"
|
||||
delegate_to: "{{ item }}"
|
||||
loop: "{{ groups['phishing_webserver'] | default([]) }}"
|
||||
when: groups['phishing_webserver'] is defined
|
||||
|
||||
- name: Deploy phishing pages
|
||||
debug:
|
||||
msg: |
|
||||
Would deploy phishing pages:
|
||||
- Template: {{ email_template | default('office365_login') }}
|
||||
- Domain: {{ phishing_domain | default(domain) }}
|
||||
Reference in New Issue
Block a user