diff --git a/tasks/files/clean-logs.sh b/files/clean-logs.sh similarity index 100% rename from tasks/files/clean-logs.sh rename to files/clean-logs.sh diff --git a/tasks/files/persistent-listener.sh b/files/persistent-listener.sh similarity index 100% rename from tasks/files/persistent-listener.sh rename to files/persistent-listener.sh diff --git a/tasks/files/rubber-ducky.txt b/files/rubber-ducky.txt similarity index 100% rename from tasks/files/rubber-ducky.txt rename to files/rubber-ducky.txt diff --git a/tasks/files/secure-exit.sh b/files/secure-exit.sh similarity index 100% rename from tasks/files/secure-exit.sh rename to files/secure-exit.sh diff --git a/tasks/files/serve-beacons.sh b/files/serve-beacons.sh similarity index 100% rename from tasks/files/serve-beacons.sh rename to files/serve-beacons.sh diff --git a/tasks/configure_redirector.yml b/tasks/configure_redirector.yml index fd5d365..3fdec53 100644 --- a/tasks/configure_redirector.yml +++ b/tasks/configure_redirector.yml @@ -55,7 +55,7 @@ - name: Create shell handler service template: - src: "shell-handler.service.j2" + src: "../templates/shell-handler.service.j2" dest: /etc/systemd/system/shell-handler.service mode: '0644' owner: root @@ -63,7 +63,7 @@ - name: Configure NGINX for zero-logging if enabled template: - src: "nginx.conf.j2" + src: "../templates/nginx.conf.j2" dest: /etc/nginx/nginx.conf mode: '0644' owner: root @@ -72,7 +72,7 @@ - name: Configure NGINX for C2 redirection template: - src: "redirector-site.conf.j2" + src: "../templates/redirector-site.conf.j2" dest: /etc/nginx/sites-available/default mode: '0644' owner: root @@ -80,7 +80,7 @@ - name: Create legitimate-looking index.html template: - src: "redirector-index.html.j2" + src: "../templates/redirector-index.html.j2" dest: /var/www/html/index.html mode: '0644' owner: www-data diff --git a/tasks/templates/default-site.j2 b/templates/default-site.j2 similarity index 100% rename from tasks/templates/default-site.j2 rename to templates/default-site.j2 diff --git a/tasks/templates/gophish-config.j2 b/templates/gophish-config.j2 similarity index 100% rename from tasks/templates/gophish-config.j2 rename to templates/gophish-config.j2 diff --git a/tasks/templates/index.html.j2 b/templates/index.html.j2 similarity index 100% rename from tasks/templates/index.html.j2 rename to templates/index.html.j2 diff --git a/tasks/templates/motd-aws.j2 b/templates/motd-aws.j2 similarity index 100% rename from tasks/templates/motd-aws.j2 rename to templates/motd-aws.j2 diff --git a/tasks/templates/motd-linode.j2 b/templates/motd-linode.j2 similarity index 100% rename from tasks/templates/motd-linode.j2 rename to templates/motd-linode.j2 diff --git a/tasks/templates/nginx.conf.j2 b/templates/nginx.conf.j2 similarity index 96% rename from tasks/templates/nginx.conf.j2 rename to templates/nginx.conf.j2 index 8a6c327..bf16f8f 100644 --- a/tasks/templates/nginx.conf.j2 +++ b/templates/nginx.conf.j2 @@ -37,7 +37,6 @@ http { # Headers to confuse fingerprinting # Microsoft-IIS/8.5 server header to throw off analysis - #more_set_headers 'Server: Microsoft-IIS/8.5'; add_header Server "Microsoft-IIS/8.5"; server_name_in_redirect off; @@ -56,4 +55,4 @@ http { # Virtual Host Configs include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*; -} \ No newline at end of file +} diff --git a/tasks/templates/proxychains.conf.j2 b/templates/proxychains.conf.j2 similarity index 100% rename from tasks/templates/proxychains.conf.j2 rename to templates/proxychains.conf.j2 diff --git a/templates/redirector-index.html.j2 b/templates/redirector-index.html.j2 new file mode 100644 index 0000000..00910cf --- /dev/null +++ b/templates/redirector-index.html.j2 @@ -0,0 +1,122 @@ + + +
+ + +Enterprise Content Delivery Network
+This server is part of our global content delivery network, optimizing digital asset delivery for enterprise applications. Our CDN provides fast, reliable, and secure content distribution across our global network.
+This is a private service. Unauthorized access is prohibited.
+Content cached and distributed across multiple geographic locations for minimum latency.
+Enterprise-grade protection against distributed denial of service attacks.
+Automatic compression and format optimization for images, scripts, and styles.
+If you're a client requiring access to our CDN services, please contact your account representative.
+ Contact Sales +