Skip to content

bl13pbl03p/buildphish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BuildPhish

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 :)

Requirements

You need to have access to remote/local server running Debian OS or similar with following requirements:

Install & Run

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.sh

Install the original Gophish platform

Comment and uncomment the correct lines in buildphish.sh to install the original Gophish version.

Uninstall

You can run the cleanphish script to clean Gophish as service:

sudo ./cleanphish.sh

To do

  • 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

Known issues

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";'

Resources

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Installs and sets up Gophish (Evilginx version) as a service.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages