Skip to content

Commit 3270a5f

Browse files
authored
Merge pull request #4 from qsecure-labs/dev-new-tf
bug fixes
2 parents 55df30d + 4ae9950 commit 3270a5f

File tree

14 files changed

+55
-39
lines changed

14 files changed

+55
-39
lines changed

modules/ansible.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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"]):

modules/providers/aws.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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

modules/providers/digitalocean.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ def c2(c):
8282
module "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

redbaron/data/playbooks/.gitignore

Whitespace-only changes.

redbaron/data/playbooks/git-clone2.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

redbaron/data/playbooks/git_clone_some_stuff.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

redbaron/data/playbooks/playbook1.yml renamed to redbaron/data/playbooks/playbook.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- name: Network Getting Started First Playbook
1+
- name: Download Impacket
22
gather_facts: false
33
hosts: all
44
tasks:

redbaron/data/scripts/gophish.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,9 @@ echo "export PATH=$GOPATH/bin:$GOROOT/bin:$PATH" >> /root/.profile
2929
source /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

redbaron/data/scripts/iredmail.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
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

99
echo -e "AUTO_USE_EXISTING_CONFIG_FILE=y \
1010
\nAUTO_INSTALL_WITHOUT_CONFIRM=y \
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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

0 commit comments

Comments
 (0)