gophish-ng

command module
v0.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2026 License: MIT Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Gophish-NG

Build Status License Go Version Latest Release Container Image Last Commit

An actively maintained fork of Gophish, the open-source phishing toolkit.


Why a fork?

Gophish is a widely used, battle-tested toolkit for running phishing simulations and security awareness training. Unfortunately, upstream gophish/gophish has had no commits since September 2024, go.mod still requires Go 1.13, and several of its core dependencies carry known CVEs — not great for a tool that security teams run inside their own networks.

This fork exists to keep that foundation solid, and to fill the gaps that show up when a team runs it. So far that's meant:

  • Dependency & toolchain modernization: Go 1.13 → 1.25+, a full migration off the long-abandoned jinzhu/gorm (v1) to gorm.io/gorm (v2), the unmaintained bitbucket.org/liamstask/goose replaced with the actively maintained pressly/goose, and every dependency brought current. govulncheck findings went from 47 reachable vulnerabilities down to a single one with no upstream fix yet available.
  • Real, verified security fixes found along the way: a stored XSS in the campaign delete dialog, a crash that could take down the whole process (not just one request), an SSRF-adjacent bug where configuring allowed_internal_hosts silently blocked all external traffic instead of just internal ranges, and an authorization bypass letting a locked-out user unlock their own account via their still-valid API key.
  • A rebuilt, minimal frontend toolchain: Gulp + Webpack (18 npm packages, two build systems quietly stepping on each other) replaced with a single esbuild script.
  • CI that actually catches things: govulncheck, linting, and automated dependency updates, none of which upstream had.
  • Features upstream lacks: teams, so several operators share the same campaigns and assets instead of each working in their own silo; a read-only auditor role for reviewers and clients; OAuth 2.0 for IMAP reporting; SMTP CC and per-profile send rates.

Every change here is tested and verified against a running instance, not just "looks right." See CONTRIBUTING.md for how this fork is maintained and SECURITY.md for reporting vulnerabilities.

Table of Contents

What is Gophish?

Gophish is an open-source phishing toolkit designed for businesses and penetration testers. It provides the ability to quickly and easily set up and execute phishing engagements and security awareness training — landing pages, email templates, target groups, sending profiles, and per-recipient tracking, all through a single web UI.

Install

Pre-built binaries for this fork are available on the releases page. Alternatively, build from source (see below). If you're looking for official upstream binaries instead, see the upstream releases page.

Building From Source

Requires Go 1.25 or above.

git clone https://github.com/raginx/gophish-ng.git
cd gophish-ng
go build

After this, you should have a binary called gophish in the current directory.

The built frontend assets (static/js/dist/, static/css/dist/) are checked into git, so this is all you need for a normal build. If you change anything under static/js/src/ or static/css/, rebuild them with:

npm install
npm run build

Docker

This fork publishes its own Docker images to the GitHub Container Registry on every release:

docker pull ghcr.io/raginx/gophish-ng:latest

Configuration can be supplied via environment variables instead of mounting a config.json - see the Docker installation docs for the full list of supported variables.

Setup

After running the Gophish binary, open a browser to https://localhost:3333 and log in with the default username and password printed in the log output, e.g.:

time="2020-07-29T01:24:08Z" level=info msg="Please login with the username admin and the password 4304d5255378177d"

Documentation

The full user guide is available at raginx.github.io/gophish-ng. Since this fork tracks upstream Gophish closely, the upstream documentation also mostly applies.

Issues

Found a bug specific to this fork? Please file an issue here. For issues that also affect upstream Gophish, consider checking the upstream issue tracker as well.

Contact

reinhard [at] westerholt [dot] me

License

MIT, same as upstream Gophish — see LICENSE for the full text.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package auth implements the authentication in use for gophish.
Package auth implements the authentication in use for gophish.
Package config implements a global configuration to be used with gophish.
Package config implements a global configuration to be used with gophish.
Package context provides the ability to store request-scoped values on an http.Request instance.
Package context provides the ability to store request-scoped values on an http.Request instance.
Package controllers is responsible for setting up the routing and controllers (http.Handlers) for gophish.
Package controllers is responsible for setting up the routing and controllers (http.Handlers) for gophish.
api
Package crypto provides symmetric encryption for secrets that need to be stored at rest, such as OAuth2 refresh tokens.
Package crypto provides symmetric encryption for secrets that need to be stored at rest, such as OAuth2 refresh tokens.
Package logger contains a wrapper around logrus to support a centralized logging config.
Package logger contains a wrapper around logrus to support a centralized logging config.
Package middleware is responsible for the definition/implementation of middleware functionality.
Package middleware is responsible for the definition/implementation of middleware functionality.
ratelimit
Package ratelimit provides a simple token-bucket rate limiting middleware which only allows n POST requests every minute.
Package ratelimit provides a simple token-bucket rate limiting middleware which only allows n POST requests every minute.
Package models implements the types and structs needed in gophish.
Package models implements the types and structs needed in gophish.
tools
seed command
Command seed populates a Gophish database with realistic-looking demo data (groups, sending profiles, landing pages, templates, and campaigns with varied results) - useful for taking screenshots or otherwise poking around a UI that isn't empty.
Command seed populates a Gophish database with realistic-looking demo data (groups, sending profiles, landing pages, templates, and campaigns with varied results) - useful for taking screenshots or otherwise poking around a UI that isn't empty.
Package util provides misc utility functions for gophish
Package util provides misc utility functions for gophish
Package webhook contains the functionality for handling outcoming webhooks.
Package webhook contains the functionality for handling outcoming webhooks.
Package worker contains the functionality for the background worker process.
Package worker contains the functionality for the background worker process.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL