Skip to content

Commit

Permalink
fix: Gophish password autogenerated issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tes committed Jul 3, 2020
1 parent 18d4486 commit 4ae9950
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
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
6 changes: 6 additions & 0 deletions modules/providers/digitalocean.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,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 @@ -170,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
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

0 comments on commit 4ae9950

Please sign in to comment.