Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file modified config/install.sh
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion modules/ansible.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def __init__(self):
# Create list with modules id
modules_ids=[]
for c in campaign_list:
if c["module"] != "dns_record" and c["module"] != "letsencrypt" and c["module"] != "godaddy" and c["module"] != "ansible":
if c["module"] != "dns_record" and c["module"] != "letsencrypt" and c["module"] != "godaddy" and c["module"] != "ansible" and c["module"] != "redirector" and c["module"] != "mail":
modules_ids.insert(len(modules_ids),(c["id"]+"/"+c["module"]))
if c["module"] != "redirector":
for i in range(c["redirectors"]):
Expand Down
6 changes: 6 additions & 0 deletions modules/providers/aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ def gophish(c):
value = "${{module.gophish_rdir_{c["id"]}.ips}}"
}}

output "Admin_Password_{c["id"]}" {{
value = "You can find the auto-generated Gophish admin password at: /opt/goapps/src/github.com/gophish/password.txt"
}}
"""
else:
output = f"""
Expand All @@ -197,6 +200,9 @@ def gophish(c):
value = "${{module.gophish_{c["id"]}.ips}}"
}}

output "Admin_Password_{c["id"]}" {{
value = "You can find the auto-generated Gophish admin password at: /opt/goapps/src/github.com/gophish/password.txt"
}}
"""
return output

Expand Down
7 changes: 7 additions & 0 deletions modules/providers/digitalocean.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def c2(c):
module "c2_{c["id"]}" {{
source = "../../redbaron/modules/{c["provider"]}/{c["type"]}-c2"
install = [{scripts}]
distro = "{linux_distro}"
size = "{c["size"]}"
regions = ["{c["region"]}"]
}}
Expand Down Expand Up @@ -156,6 +157,9 @@ def gophish(c):
value = "${{module.gophish_rdir_{c["id"]}.ips}}"
}}

output "Admin_Password_{c["id"]}" {{
value = "You can find the auto-generated Gophish admin password at: /opt/goapps/src/github.com/gophish/password.txt"
}}
"""
else:
output = f"""
Expand All @@ -169,6 +173,9 @@ def gophish(c):
value = "${{module.gophish_{c["id"]}.ips}}"
}}

output "Admin_Password_{c["id"]}" {{
value = "You can find the auto-generated Gophish admin password at: /opt/goapps/src/github.com/gophish/password.txt"
}}
"""
return output

Expand Down
Empty file.
19 changes: 0 additions & 19 deletions redbaron/data/playbooks/git-clone2.yml

This file was deleted.

13 changes: 0 additions & 13 deletions redbaron/data/playbooks/git_clone_some_stuff.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
- name: Network Getting Started First Playbook
- name: Download Impacket
gather_facts: false
hosts: all
tasks:
Expand Down
8 changes: 6 additions & 2 deletions redbaron/data/scripts/gophish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,9 @@ echo "export PATH=$GOPATH/bin:$GOROOT/bin:$PATH" >> /root/.profile
source /root/.profile

#create readme file
echo "systemctl start gophish.service (start the service)" >> /root/README.txt
echo "systemctl stop gophish.service (stop the service)" >> /root/README.txt
echo "systemctl start gophish.service (start the service)" >> /opt/goapps/src/github.com/gophish/README.txt
echo "systemctl stop gophish.service (stop the service)" >> /opt/goapps/src/github.com/gophish/README.txt

sleep 30s

cat /var/log/gophish.err | grep 'Please login with the username admin and the password' > /opt/goapps/src/github.com/gophish/password.txt
6 changes: 3 additions & 3 deletions redbaron/data/scripts/iredmail.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#bin/bash

wget https://github.com/iredmail/iRedMail/archive/1.2.1.tar.gz
wget https://github.com/iredmail/iRedMail/archive/1.3.tar.gz

tar -xf 1.2.1.tar.gz
tar -xf 1.3.tar.gz

cd iRedMail-1.2.1
cd iRedMail-1.3

echo -e "AUTO_USE_EXISTING_CONFIG_FILE=y \
\nAUTO_INSTALL_WITHOUT_CONFIRM=y \
Expand Down
9 changes: 9 additions & 0 deletions redbaron/data/scripts/tools/covenant.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
sudo wget https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
#replace https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb with the correct distreo package (debian package tested on DO ubuntu and it works)
sudo apt install -y apt-transport-https
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get update
sudo apt-get install -y dotnet-sdk-3.1
git clone --recurse-submodules https://github.com/cobbr/Covenant
cd Covenant/Covenant
dotnet build
6 changes: 6 additions & 0 deletions redbaron/modules/aws/dns-c2/security_group.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ resource "aws_security_group" "dns-c2" {
protocol = "tcp"
cidr_blocks = ["${data.external.get_public_ip.result["ip"]}/32"]
}
ingress { # rule for covenant admin panel
from_port = 7443
to_port = 7443
protocol = "tcp"
cidr_blocks = ["${data.external.get_public_ip.result["ip"]}/32"]
}
ingress {
from_port = 53
to_port = 53
Expand Down
6 changes: 6 additions & 0 deletions redbaron/modules/aws/http-c2/security_group.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ resource "aws_security_group" "http-c2" {
protocol = "tcp"
cidr_blocks = ["${data.external.get_public_ip.result["ip"]}/32"]
}
ingress { # rule for covenant admin panel
from_port = 7443
to_port = 7443
protocol = "tcp"
cidr_blocks = ["${data.external.get_public_ip.result["ip"]}/32"]
}
ingress {
from_port = 80
to_port = 80
Expand Down
5 changes: 5 additions & 0 deletions redbaron/modules/digitalocean/dns-c2/firewall.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ resource "digitalocean_firewall" "web" {
port_range = "22"
source_addresses = ["${data.external.get_public_ip.result["ip"]}/32"]
}
inbound_rule { # Rule for covenant admin panel
protocol = "tcp"
port_range = "7443"
source_addresses = ["${data.external.get_public_ip.result["ip"]}/32"]
}
inbound_rule {
protocol = "udp"
port_range = "60000-61000"
Expand Down
5 changes: 5 additions & 0 deletions redbaron/modules/digitalocean/http-c2/firewall.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ resource "digitalocean_firewall" "web" {
port_range = "22"
source_addresses = ["${data.external.get_public_ip.result["ip"]}/32"]
}
inbound_rule { # Rule for covenant admin panel
protocol = "tcp"
port_range = "7443"
source_addresses = ["${data.external.get_public_ip.result["ip"]}/32"]
}
inbound_rule {
protocol = "udp"
port_range = "60000-61000"
Expand Down