File tree Expand file tree Collapse file tree 14 files changed +55
-39
lines changed Expand file tree Collapse file tree 14 files changed +55
-39
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ def __init__(self):
7171 # Create list with modules id
7272 modules_ids = []
7373 for c in campaign_list :
74- if c ["module" ] != "dns_record" and c ["module" ] != "letsencrypt" and c ["module" ] != "godaddy" and c ["module" ] != "ansible" :
74+ 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" :
7575 modules_ids .insert (len (modules_ids ),(c ["id" ]+ "/" + c ["module" ]))
7676 if c ["module" ] != "redirector" :
7777 for i in range (c ["redirectors" ]):
Original file line number Diff line number Diff line change @@ -183,6 +183,9 @@ def gophish(c):
183183 value = "${{module.gophish_rdir_{ c ["id" ]} .ips}}"
184184}}
185185
186+ output "Admin_Password_{ c ["id" ]} " {{
187+ value = "You can find the auto-generated Gophish admin password at: /opt/goapps/src/github.com/gophish/password.txt"
188+ }}
186189"""
187190 else :
188191 output = f"""
@@ -197,6 +200,9 @@ def gophish(c):
197200 value = "${{module.gophish_{ c ["id" ]} .ips}}"
198201}}
199202
203+ output "Admin_Password_{ c ["id" ]} " {{
204+ value = "You can find the auto-generated Gophish admin password at: /opt/goapps/src/github.com/gophish/password.txt"
205+ }}
200206"""
201207 return output
202208
Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ def c2(c):
8282module "c2_{ c ["id" ]} " {{
8383 source = "../../redbaron/modules/{ c ["provider" ]} /{ c ["type" ]} -c2"
8484 install = [{ scripts } ]
85+ distro = "{ linux_distro } "
8586 size = "{ c ["size" ]} "
8687 regions = ["{ c ["region" ]} "]
8788}}
@@ -156,6 +157,9 @@ def gophish(c):
156157 value = "${{module.gophish_rdir_{ c ["id" ]} .ips}}"
157158}}
158159
160+ output "Admin_Password_{ c ["id" ]} " {{
161+ value = "You can find the auto-generated Gophish admin password at: /opt/goapps/src/github.com/gophish/password.txt"
162+ }}
159163"""
160164 else :
161165 output = f"""
@@ -169,6 +173,9 @@ def gophish(c):
169173 value = "${{module.gophish_{ c ["id" ]} .ips}}"
170174}}
171175
176+ output "Admin_Password_{ c ["id" ]} " {{
177+ value = "You can find the auto-generated Gophish admin password at: /opt/goapps/src/github.com/gophish/password.txt"
178+ }}
172179"""
173180 return output
174181
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- - name : Network Getting Started First Playbook
1+ - name : Download Impacket
22 gather_facts : false
33 hosts : all
44 tasks :
Original file line number Diff line number Diff line change @@ -29,5 +29,9 @@ echo "export PATH=$GOPATH/bin:$GOROOT/bin:$PATH" >> /root/.profile
2929source /root/.profile
3030
3131# create readme file
32- echo " systemctl start gophish.service (start the service)" >> /root/README.txt
33- echo " systemctl stop gophish.service (stop the service)" >> /root/README.txt
32+ echo " systemctl start gophish.service (start the service)" >> /opt/goapps/src/github.com/gophish/README.txt
33+ echo " systemctl stop gophish.service (stop the service)" >> /opt/goapps/src/github.com/gophish/README.txt
34+
35+ sleep 30s
36+
37+ cat /var/log/gophish.err | grep ' Please login with the username admin and the password' > /opt/goapps/src/github.com/gophish/password.txt
Original file line number Diff line number Diff line change 11# bin/bash
22
3- wget https://github.com/iredmail/iRedMail/archive/1.2.1 .tar.gz
3+ wget https://github.com/iredmail/iRedMail/archive/1.3 .tar.gz
44
5- tar -xf 1.2.1 .tar.gz
5+ tar -xf 1.3 .tar.gz
66
7- cd iRedMail-1.2.1
7+ cd iRedMail-1.3
88
99echo -e " AUTO_USE_EXISTING_CONFIG_FILE=y \
1010\nAUTO_INSTALL_WITHOUT_CONFIRM=y \
Original file line number Diff line number Diff line change 1+ sudo wget https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
2+ # 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)
3+ sudo apt install -y apt-transport-https
4+ sudo dpkg -i packages-microsoft-prod.deb
5+ sudo apt-get update
6+ sudo apt-get install -y dotnet-sdk-3.1
7+ git clone --recurse-submodules https://github.com/cobbr/Covenant
8+ cd Covenant/Covenant
9+ dotnet build
You can’t perform that action at this time.
0 commit comments