GoPhish & Evilginx
In this setup, GoPhish is used to send emails and provide a dashboard for EvilGinx3 campaign statistics, but it is not used for any landing pages. Your phishing links sent from GoPhish will point to an evilginx3 lure path and EvilGinx3 will be used for landing pages. This provides the ability to still bypass 2FA/MFA with EvilGinx3, without losing those precious stats. Realtime campaign event notifications have been provided with a local websocket/http server I have developed and full usable JSON strings containing tokens/cookies from EvilGinx3 are displayed directly in the GoPhish GUI

Infrastructure Layout
EvilGinx
3will listen on an externally accessible address on port443(or whatever port you choose in EvilGinx3configuration)GoPhishwill listen locally on port8080and3333(phishing server on port8080is not used)Cloudflare Turnstileserver will listen locally on port80
setup.sh
setup.sh has been provided to automate the needed configurations for you. Once this script is run and you've fed it the right values, you should be ready to get started. Below is the setup help:
Usage:
./setup <root domain> <subdomain(s)> <root domain bool> <feed bool> <rid replacement>
- root domain - the root domain to be used for the campaign
- subdomains - a space separated list of evilginx3 subdomains, can be one if only one
- root domain bool - true or false to proxy root domain to evilginx3
- feed bool - true or false if you plan to use the live feed
- rid replacement - replace the gophish default "rid" in phishing URLs with this value
Example:
./setup.sh example.com "accounts myaccount" false true user_idCloudflare Turnstile Setup
Cloudflare Turnstile integration has superseded redirect rules and an IP blacklist with Apache2. The Apache2 approach relied on a predefined list of redirect rules and an IP blacklist. We may miss certain user agents, hosts, or IP addresses that end up detecting our infrastructure. This is usually done through bots and automated software that scans phishing infrastructure. Cloudflare Turnstile technology is one of the best defenses against bots at the time of writing and verifying an actual user is accessing your site.
Create a Cloudflare account
Select the
Turnstiletab in the dashboardAdd a new site and use the domain for your phishing site/campaign
Edit the
evilginx3/templates/forbidden.html&evilginx3/templates/turnstile.htmlfiles with your own changesWhen starting
evilginx3, include the public/private keys with theturnstileflag separated by a:. For example:
./evilginx3 -feed -g ../gophish/gophish.db -turnstile <PUBLIC_KEY>:<PRIVATE_KEY>Cloudflare Turnstile HTML Template Guide
If I were to include a static HTML page for the Cloudflare Turnstile functionality, everyone's phishing infrastructure would have the same page and it would lead to static HTML code detections. In comes Go HTML templates. I have included a starter template in evilginx3/templates/turnstile.html as a guideline YOU WANT TO CHANGE THIS. Here are the rules around how the template code is setup, failure to follow these rules will likely result in breaking the Cloudflare Turnstile functionality:
You must include the
{{.FormActionURL}},{{.ErrorMessage}}, and{{.TurnstilePublicKey}}template variablesThe form action URL for submitting the
Turnstilechallenge must be the{{.FormActionURL}}template variableThe
data-sitekeyvalue for thecf-turnstiledivclass must be the{{.TurnstilePublicKey}}template variableYou must save the template at
evilginx3/templates/turnstile.htmlThe button to submit the challenge form must have its name attribute equal
button
replace_rid.sh
In case you ran setup.sh once and already replaced the default RId value throughout the project, replace_rid.sh was created to replace the RId value again.
Usage:
./replace_rid <previous rid> <new rid>
- previous rid - the previous rid value that was replaced
- new rid - the new rid value to replace the previous
Example:
./replace_rid.sh user_id client_idEmail Campaign Setup
Once setup.sh is run, the next steps are:
Start
GoPhishand configure email template, email sending profile, and groupsStart
evilginx3and configure phishlet and lure (must specify full path toGoPhishsqlite3database with-gflag)Launch campaign from
GoPhishand make the landing URL your lure path forevilginx3phishletPROFIT
QR Code Generator
The QR Code Generator feature allows you to generate QR codes to deploy QR code social engineering campaigns. Here are the steps to use it:
When editing an email HTML template, you can now include the
{{.QR}}template variable:

When starting a new campaign, enter a size for the QR code images:

The outcome will be similar to the following, but you can adjust the size to meet your needs:

PROFIT
Note that this feature is only supported for email campaigns and HTML email templates at the moment.
SMS Campaign Setup

An entire reworking of GoPhish was performed in order to provide SMS campaign support with Twilio. Your new evilgophish dashboard will look like below:
Once you have run setup.sh, the next steps are:
Configure
SMSmessage template. You will useTextonly when creating aSMSmessage template, and you should not include a tracking link as it will appear in theSMSmessage. LeaveEnvelope SenderandSubjectblank like below:

Configure
SMS Sending Profile. Enter your phone number fromTwilio,Account SID, andAuth Token:
Import groups. The
CSVtemplate values have been kept the same for compatibility, so keep theCSVcolumn names the same and place your target phone numbers into theEmailcolumn. Note thatTwilioaccepts the following phone number formats, so they must be in one of these three:

Start
evilginx3and configure phishlet and lure (must specify full path toGoPhishsqlite3database with-gflag)Launch campaign from
GoPhishand make the landing URL your lure path forevilginx3phishletPROFIT
Live Feed Setup
Realtime campaign event notifications are handled by a local websocket/http server and live feed app. To get setup:
Select
trueforfeed boolwhen runningsetup.shcdinto theevilfeeddirectory and start the app with./evilfeedWhen starting
evilginx3, supply the-feedflag to enable the feed. For example:
./evilginx3 -feed -g /opt/evilgophish/gophish/gophish.db
You can begin viewing the live feed at:
http://localhost:1337/. The feed dashboard will look like below:

IMPORTANT NOTES
The live feed page hooks a websocket for events with
JavaScriptand you DO NOT need to refresh the page. If you refresh the page, you will LOSE all events up to that point.
A Word About Phishlets
I will add phishlets to this repository at my own discretion. There should be no expectation of me creating phishlets as part of this repository, you are expected to create your own. DO NOT OPEN ISSUES IN THIS REPOSITORY FOR PHISHLETS
Installation Notes
The installation script was tested on Ubuntu Focal/Jammy and installs the latest version of Go from source. Binaries may fail to build depending on your Go environment and what you have installed i.e. installing the original versions this project combines then trying to install this version of them. It also makes changes to DNS so evilginx3 can take it over. You should understand the implications of this and review it. A fresh environment is recommended and other operating systems haven't been tested.
Changes to GoPhish
GoPhish is never used in any of your actual phishing pages and email headers have been stripped, so there's no need to worry about IOCs within it.
Default
ridstring in phishing URLs is chosen by the operator insetup.shAdded
SMSCampaign SupportAdded additional
Captured Sessioncampaign event for capturedevilginx3sessions/tokens
Last updated
Was this helpful?