Skip to content

Ansible Playbook to configure Mailing Infra + GoPhish for Phishing simulations and Red Team exercises

License

Notifications You must be signed in to change notification settings

pbssubhash/auto-phish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto Phish

If you are a red teamer, you know Phishing is a very crucial and productive part of owning your target and you also known, it's a bit tideous process to setup various moving parts that are required for a phishing exercise. AutoPhish is intended for those time-concious, lazy and automation loving red teamers who wish to setup their phishing environment within 5-10 minutes.

What does it do under the hood?

It just combines the following and frees you from boring ctrl+c and ctrl+v.

  1. It uses iRedMail for mailing infrastructure
  2. GoPhish for the phishing infrastructure
  3. LetsEncrypt for SSL certificates.

Get Started

  1. Edit inventory.txt with your red team server details.
  • Replace XXX.XXX.XXX.XXX with your server IP
  • Replace SSH_Password with your real ssh password
[phishing_server]
XXX.XXX.XXX.XXX ansible_server=XXX.XXX.XXX.XXX ansible_connection=ssh ansible_user=root ansible_ssh_pass="SSH_PASSWORD"

P.S. Check Ansible SSH Connection Options for more information on how to use SSH keys, etc.

  1. Install ansible on your machine Ansible has a neat documentation about the same. Please check here

  2. Run the playbook Playbook can be executed using the following command (Don't forget to edit the below command):

ansible-playbook -i inventory.txt playbook.yaml --extra-vars="{'le_email':'[email protected]','le_domain':'phishingdomain.com','postmaster_password':'SuperGreatPassword'}"

Once executed, it'll setup iRedMail, GoPhish along with all required SSL certificates.

Helpful links:

  1. Creating more users in the mailing infrastructure: https://computingforgeeks.com/add-domain-and-user-account-on-iredmail-mail-server/
  2. GoPhish Tutorial: https://www.youtube.com/watch?v=S6S5JF6Gou0

Disclaimer:

Built for educational purposes only. Author isn't responsible for any sort of misuse associated with the script.

About

Ansible Playbook to configure Mailing Infra + GoPhish for Phishing simulations and Red Team exercises

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages