Simple bash script which downloads, installs and sets up GaaS: Gophish as a Service. Current version (Gophish Linux 64-bit v0.12.1, Evilginx compatible) has been tested on Debian. If Gophish has been configured successfully as a service, it will also start on boot.
Thanks @jordan-wright for creating Gophish, @kgretzky for creating Evilginx and the rest of the contributors, your tools have been really helpful along the way :)
You need to have access to remote/local server running Debian OS or similar with following requirements:
- At least 1GB RAM and at least 1 CPU.
- Non-root user in sudoers group with preconfigured authorized_keys SSH keys to allow for passwordless login.
- Also check out:
First download the repo with git, navigate into directory, make the bash files executable and run them!
Open your terminal, enter the following bash one-liner to download and install Gophish:
git clone https://github.com/bl13pbl03p/buildphish.git && cd buildphish && chmod +x *.sh && sudo ./buildphish.shComment and uncomment the correct lines in buildphish.sh to install the original Gophish version.
You can run the cleanphish script to clean Gophish as service:
sudo ./cleanphish.sh- Build initial script
- Check if Gophish already exists as service
- Add uninstall script
- Add ASCII banner
- Check if Apache2 service exists
- Add nice colors Possible helpful docs
- Hash check of zip file
- Show initial password
- Add loading bar when downloading and unzipping gophish
- Add preview to README
- Create function to echo API key from Gophish
- More functions and fun stuff
- The error can be ignored, for more info see: https://unix.stackexchange.com/questions/351692/how-can-we-mask-service-whose-unit-file-is-located-under-etc-systemd-system. The following error might occur while installing:
Failed to enable unit: File /etc/systemd/system/gophish.service already exists.- If the script fails to retrieve the generated password, run the following command manually:
grep --color=always --word-regexp 'Please login with the username admin and the password' /var/log/gophish/gophish.log | cut -d' ' -f12- | tr -d '"'- In case you forgot the password for your admin account, the following one-liner resets the password to
gophish:
sudo apt update && sudo apt-get install -y sqlite3 libsqlite3-dev && sudo sqlite3 /opt/gophish/gophish.db 'update users set hash="$2a$10$IYkPp0.QsM81lYYPrQx6W.U6oQGw7wMpozrKhKAHUBVL4mkm/EvAS" where username="admin";'- Latest Gophish Release
- Install Gophish on Ubuntu 18.04/Debian 9.8
- Official Gophish Docs
- Creating banner
- Evilginx 3.3 - Go & Phish
- Reset Gophish password
This project is licensed under the MIT License. See the LICENSE file for details.