Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge with base #2

Open
wants to merge 136 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
136 commits
Select commit Hold shift + click to select a range
44f8840
Performance Improvements for Campaign and Group Creation (#1686)
jordan-wright Dec 3, 2019
79e680e
Updates the tls.Config of the phishing and admin servers to support T…
jordan-wright Dec 12, 2019
699532f
Remove support for Go 1.9.
jordan-wright Dec 12, 2019
28cd7a2
Add Webhook Support
GildedHonour Dec 16, 2019
01287e0
Minor cleanup on webhook feature integration
jordan-wright Dec 16, 2019
9d430c9
Added gofmt requirement to CI
jordan-wright Dec 16, 2019
f570a61
Fix webhooks db migration. (#1697)
aczietlow Dec 18, 2019
da4e468
Deleted unneeded .DS_Store file that was accidentally merged as part …
jordan-wright Jan 15, 2020
91d7983
Get send_by_date (#1720)
JoseW3b Jan 16, 2020
546da4e
Removing unneeded query to improve group performance.
jordan-wright Jan 17, 2020
caede2e
Refactoring Logging (#1722)
jordan-wright Jan 17, 2020
9de3274
Added IMAP support for checking reported emails (#1612)
glennzw Jan 18, 2020
ecb6d46
Rebuilding minified JS to support #1722
jordan-wright Jan 18, 2020
c553d7d
Bumping version to 0.9.0
jordan-wright Jan 18, 2020
947bb4c
Adjusting SMTP TLS config to use just the hostname instead of the hos…
jordan-wright Jan 21, 2020
0620671
Adding benchmarks for maillog.Generate. Ref #1726
jordan-wright Jan 26, 2020
3d52552
Added campaign ID to the webhook JSON payload
jordan-wright Jan 30, 2020
e12258b
Updated Docker Hub link to point to gophish/gophish (#1732)
cyberbutler Feb 2, 2020
be459e4
Refactoring tests to remove stretchr/testify dependency
jordan-wright Feb 2, 2020
4375e5f
Create ci.yml (#1741)
jordan-wright Feb 2, 2020
26884a8
Updated README to include GitHub Actions badge and update LICENSE cop…
jordan-wright Feb 2, 2020
1733da1
Creating go.mod and go.sum files to establish Gophish as a Go module.
jordan-wright Feb 3, 2020
6e20f64
Fixed text autocomplete dropping down in Chrome (#1749)
glennzw Feb 12, 2020
8162a80
Improve the Performance of Sending Emails (#1753)
jordan-wright Mar 1, 2020
2e3aacd
Remove Unused Variable (#1774)
jordan-wright Mar 5, 2020
6251ea6
Fixing issues - get values from non objects (#1773)
jordan-wright Mar 5, 2020
053b998
Bump acorn from 6.1.1 to 6.4.1 (#1785)
dependabot[bot] Mar 15, 2020
c0be58a
Add "mark as reported" to results table (#1772)
FLX-0x00 Mar 15, 2020
118d989
Updated minified scripts from #1772
jordan-wright Mar 15, 2020
c5c1e6f
Updated the Ansible role (#1786)
PaulSec Mar 22, 2020
138b486
Caching the campaign for those that are launched immediately. This is…
jordan-wright Mar 28, 2020
07b46d2
Updated the TLS configuration.
jordan-wright Mar 28, 2020
a0e8c4a
Added optional csrf_key to config to better support H/A configuration…
jordan-wright Apr 24, 2020
26e82cb
Add capability to run the binary in a mode (#1817)
mitprasoon Apr 27, 2020
38a6a77
Added ability to allow admin to 'su' to other accounts (#1812)
glennzw Apr 27, 2020
116c2a7
Load datatable rows all at once (#1830)
mitprasoon May 4, 2020
40b7784
Add favicon (#1831)
mitprasoon May 9, 2020
726e3c9
Rebuilding JS files from #1830
jordan-wright May 9, 2020
353639e
Use GroupsSummary to create and copy campaign (#1838)
mitprasoon May 23, 2020
b29544c
Rebuilding JS files from #1838
jordan-wright May 23, 2020
ba38bfd
Bumped version to 0.10.0
jordan-wright May 25, 2020
520b0b8
Initial commit of automatic releases via GitHub Actions.
jordan-wright May 25, 2020
b57210f
Rebuilt JS files from #1812
jordan-wright May 25, 2020
782f80f
Bumped version to 0.10.1
jordan-wright May 25, 2020
0961e22
Removed unneeded print statement
jordan-wright May 26, 2020
ec8b172
General code cleanup as part of an effort to integrate staticcheck in…
jordan-wright May 26, 2020
8ebdb43
Documentation and code cleanup for webhooks
jordan-wright Jun 13, 2020
6f95da0
IMAP update; new library and attachment support (#1791)
glennzw Jun 17, 2020
61bbb22
Updating the modules used for IMAP and email support
jordan-wright Jun 17, 2020
0f6439d
gofmt'ing the IMAP changes
jordan-wright Jun 17, 2020
bb7de8d
Initial Implementation of a Password Policy (#1867)
jordan-wright Jun 20, 2020
bf76f86
Adds environment variable to set the initial admin password
jordan-wright Jun 25, 2020
afa00e2
Add ability to provide initial API key on service standup (#1883)
stusmall Jul 2, 2020
f2042de
Bump lodash from 4.17.15 to 4.17.19 (#1898)
dependabot[bot] Jul 18, 2020
1c5ad85
Added handling for default logger if one is not specified. Fixes #1899
jordan-wright Jul 18, 2020
cf7d058
Fixed config test to match new default logger
jordan-wright Jul 18, 2020
4e9b94b
Fixed validation when setting IMAP hostname
jordan-wright Jul 18, 2020
b25f5ac
Updated PapaParse config to prevent CSV injection.
jordan-wright Jul 25, 2020
19ef924
Properly escaping server output when a request is made to ping a mali…
jordan-wright Jul 25, 2020
65f06c1
Create SECURITY.md
jordan-wright Jul 25, 2020
b684fb4
Fixing issue where campaigns aren't showing up in the archived tab if…
jordan-wright Jul 25, 2020
da18b9d
Update credentials in Readme. (#1914)
xtrasimplicity Jul 29, 2020
81aa65b
Bump elliptic from 6.4.1 to 6.5.3 (#1919)
dependabot[bot] Aug 3, 2020
90fed5a
Added escaping for error message in sending profile hostname
jordan-wright Aug 7, 2020
0558da9
Added support to allow invalid IMAP certificates (#1909)
glennzw Aug 8, 2020
735880c
Creating minified JS file from chnages in #1909
jordan-wright Aug 8, 2020
27d13a0
Gofmt'ing so that tests pass
jordan-wright Aug 15, 2020
e3352f4
Implement SSRF Mitigations (#1940)
jordan-wright Aug 20, 2020
6df62e8
Added a simple Content-Security-Policy to mitigate clickjacking attem…
jordan-wright Aug 20, 2020
b01bd6c
Updated github.com/jordan-wright/email dependency
jordan-wright Aug 24, 2020
22c7b9b
Bumped version to 0.11.0
jordan-wright Aug 28, 2020
0b2ab68
Modified regex to detect Microsoft ATP URLs (#1976)
glennzw Sep 24, 2020
c1d3c7c
Modified frontend reporting logic to be more flexible with campaigns …
jordan-wright Sep 24, 2020
b53cff0
Added functionality to display last user login (#1967)
glennzw Oct 1, 2020
3c490db
Updated JS from #1976
jordan-wright Oct 1, 2020
af3122f
Adds support for X-Forwarded-For and X-Real-IP headers so that the co…
jordan-wright Oct 11, 2020
2315412
Made error handling in the case of a client IP without a port more gr…
jordan-wright Oct 11, 2020
120e232
Removing accidental dependencies to revert to 3c490dbadbe6f66cc9a29be…
jordan-wright Oct 11, 2020
8b8e88b
Adjusting how we handle IP address parsing to more gracefully handle …
jordan-wright Oct 15, 2020
ced5261
Added functionality to lock accounts (+bug fix) (#2060)
glennzw Dec 7, 2020
9f5368a
Bump ini from 1.3.5 to 1.3.7 (#2067)
dependabot[bot] Dec 11, 2020
e6533e9
Update Dockerfile (#2095)
ssssdl Jan 24, 2021
166ff8a
Add PUT and DELETE methods for CORS handling. Fixes #2098
jordan-wright Jan 24, 2021
15303e3
Fix code quality issues (#2118)
withshubh Feb 24, 2021
54d9eb2
Merge pull request #2105 from gophish/fix-cors-headers
glennzw Mar 6, 2021
96d1a55
Bump elliptic from 6.5.3 to 6.5.4 (#2140)
dependabot[bot] Mar 28, 2021
db63ee9
Bump yargs-parser from 5.0.0 to 5.0.1 (#2151)
dependabot[bot] Mar 28, 2021
f722065
Bump y18n from 3.2.1 to 3.2.2
dependabot[bot] Mar 30, 2021
a5b3b13
Bump ssri from 6.0.1 to 6.0.2
dependabot[bot] Apr 29, 2021
5fc6ba6
Bump lodash from 4.17.19 to 4.17.21
dependabot[bot] May 8, 2021
82fd6ad
Bump hosted-git-info from 2.7.1 to 2.8.9
dependabot[bot] May 10, 2021
5aa3a85
Bump browserslist from 4.6.1 to 4.16.6
dependabot[bot] May 25, 2021
f89c85f
Bump path-parse from 1.0.6 to 1.0.7
dependabot[bot] Aug 10, 2021
003d143
Bump tar from 4.4.8 to 4.4.19
dependabot[bot] Sep 1, 2021
4814620
Merge pull request #2157 from gophish/dependabot/npm_and_yarn/y18n-3.2.2
glennzw Dec 18, 2021
12ecfd8
Merge pull request #2182 from gophish/dependabot/npm_and_yarn/ssri-6.0.2
glennzw Dec 18, 2021
b3f0bad
Merge pull request #2195 from gophish/dependabot/npm_and_yarn/lodash-…
glennzw Dec 18, 2021
1d18ea7
Merge pull request #2196 from gophish/dependabot/npm_and_yarn/hosted-…
glennzw Dec 18, 2021
4b106b3
Merge pull request #2211 from gophish/dependabot/npm_and_yarn/browser…
glennzw Dec 18, 2021
202ecd3
Merge pull request #2277 from gophish/dependabot/npm_and_yarn/path-pa…
glennzw Dec 18, 2021
ceab050
Merge pull request #2296 from gophish/dependabot/npm_and_yarn/tar-4.4.19
glennzw Dec 18, 2021
0646f14
Updated the Ansible Playbook (#2138)
philomath213 Dec 23, 2021
a6627df
Added support for templating attachments (#1936)
glennzw Feb 2, 2022
1f95efc
Fix sending profile form (#2389)
marksteward Feb 7, 2022
741201b
Added JS for Fix sending profile form (#2389)
glennzw Feb 16, 2022
e215132
Bump ajv from 6.10.0 to 6.12.6 (#2395)
dependabot[bot] Feb 16, 2022
67e304f
Fix open redirect vulnerability on the login page (#2262)
Kirill89 Feb 16, 2022
eb016a4
Bump copy-props from 2.0.4 to 2.0.5 (#2399)
dependabot[bot] Feb 17, 2022
e0acb99
Bump minimist from 1.2.0 to 1.2.5 (#2401)
dependabot[bot] Feb 25, 2022
bb516ef
986 custom envelope sender remerge (#2334)
ptitdoc Mar 25, 2022
704e6d5
Fix modal titles saying new when editing existing content (#2318)
jake-walker Apr 15, 2022
b7c6966
Embed or attach files based on their file extension (#1525)
dzsibi Jun 1, 2022
0c255bb
Disallow changing of admin username from the UI (#2487)
glennzw Jun 1, 2022
d0ff382
Disallow deleting of admin user from the UI (#2487)
glennzw Jun 1, 2022
6fb77bf
Fixed formatting from Custom Envelope PR #2334
glennzw Jun 5, 2022
5ef2d75
Fixed Account Locked bug, allowing user accounts to be locked
glennzw Jun 11, 2022
90cd444
Minified template.js resolving #2545
glennzw Aug 9, 2022
6b61426
Bumped version to 0.12.0
glennzw Aug 12, 2022
32c0502
Minified missing sending_profile file (741201b)
glennzw Aug 24, 2022
34f7457
Update README.md
glennzw Aug 25, 2022
3863ad3
Fixed issue with sorting by login date of users
glennzw Aug 26, 2022
78e9a51
Add Trusted Origins to CSRF Handler (#2301)
mcab Sep 6, 2022
a53665b
Updated formatting and CI to be in line with more recent versions of go
glennzw Sep 12, 2022
2b85a2b
Updated release workflow to mitigate set-env vulnerability and fix Wi…
glennzw Sep 14, 2022
53537a2
Fix resource selection during campaign copy (#2482)
29vivek Sep 14, 2022
06e95c1
Minified campaigns.js #2482
glennzw Sep 14, 2022
b1648f0
Bumped version to 0.12.1
glennzw Sep 14, 2022
095a9ba
Updated README.md with working source installation instructions (see …
glennzw Sep 29, 2022
cec2da5
Fix new records being added on completing a campaign (#2599)
29vivek Oct 13, 2022
2d08bef
Modified "SMTP From" field to avoid SMTP server errors with RFC 5321 …
troplolBE Nov 29, 2022
d2efb18
Updated regex pattern to allow longer TLDs
glennzw Dec 16, 2022
04f0fb6
Install ca-certificates on Docker image (#2888)
wmnnd Aug 23, 2023
ac9e6a7
Add DB_NAME to run.sh to support mysql (#2850)
rpsteinbrueck Aug 23, 2023
8e79294
Added error handling to in-app reporting mechanism
glennzw Sep 15, 2023
908886f
Enforce account locks when creating new users (#3173)
Caetan Sep 23, 2024
9561846
Update workflow actions and Go versions (#3245)
jordan-wright Sep 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI
on:
- pull_request
- push
jobs:

build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
goVer: [1.21, 1.22, 1.23]

steps:
- name: Set up Go ${{ matrix.goVer }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.goVer }}
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Get dependencies
run: |
go get -v -t -d ./...
go get gopkg.in/check.v1

- name: Build
run: go build -v .

- name: Format
run: diff -u <(echo -n) <(gofmt -d .)

- name: Test
run: go test ./...
153 changes: 153 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
name: Build Gophish Release
on:
release:
types: [created]

jobs:
build:
name: Build Binary
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
arch: ['386', amd64]
# We sometimes use different verbiage for things (e.g. "darwin"
# for the GOOS build flag and "osx" in the actual release ZIP).
# We need to specify those here.
include:
- os: windows-latest
goos: windows
bin: 'gophish.exe'
releaseos: windows
- os: ubuntu-latest
goos: linux
bin: 'gophish'
releaseos: linux
- os: macos-latest
goos: darwin
bin: 'gophish'
releaseos: osx
# Don't build windows-32bit due to missing MinGW dependencies
# Don't build osx-32bit due to eventual drop in Go support
exclude:
- os: windows-latest
arch: '386'
- os: macos-latest
arch: '386'
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.22
- if: matrix.os == 'ubuntu-latest'
run: sudo apt-get update && sudo apt-get install -y gcc-multilib
- if: matrix.arch == '386'
run: echo "RELEASE=gophish-${{ github.event.release.tag_name }}-${{ matrix.releaseos }}-32bit" >> $GITHUB_ENV
- if: matrix.arch == 'amd64'
run: echo "RELEASE=gophish-${{ github.event.release.tag_name }}-${{ matrix.releaseos }}-64bit" >> $GITHUB_ENV
- if: matrix.os == 'windows-latest'
run: echo "RELEASE=gophish-${{ github.event.release.tag_name }}-${{ matrix.releaseos }}-64bit" | Out-File -FilePath $env:GITHUB_ENV -Append # https://github.com/actions/runner/issues/1636
- uses: actions/checkout@v4
- name: Build ${{ matrix.goos }}/${{ matrix.arch }}
run: go build -o ${{ matrix.bin }}
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.arch }}
CGO_ENABLED: 1
- name: Upload to artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ env.RELEASE }}
path: ${{ matrix.bin }}

package:
name: Package Assets
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
path: bin
- name: Package Releases
run: |
mkdir releases;
for RELEASE_DIR in bin/*
do
echo "Creating release $RELEASE_DIR"
for BINARY in $RELEASE_DIR/*
do
cp $BINARY .;
zip -r releases/$(basename $RELEASE_DIR).zip \
$(basename ${BINARY}) \
static/js/dist \
static/js/src/vendor/ckeditor \
static/css/dist \
static/images \
static/font \
static/db \
db \
templates \
README.md \
VERSION \
LICENSE \
config.json;
rm $BINARY;
done
done
- name: Upload to artifacts
uses: actions/upload-artifact@v4
with:
name: releases
path: releases/*.zip

upload:
name: Upload to the Release
runs-on: ubuntu-latest
needs: package
steps:
- uses: actions/download-artifact@v4
with:
name: releases
path: releases/
# I would love to use @actions/upload-release-asset, but they don't
# support wildcards in the asset path. Ref #9, #24, and #47
- name: Upload Archives to Release
env:
UPLOAD_URL: ${{ github.event.release.upload_url }}
API_HEADER: "Accept: application/vnd.github.v3+json"
AUTH_HEADER: "Authorization: token ${{ secrets.GITHUB_TOKEN }}"
run: |
UPLOAD_URL=$(echo -n $UPLOAD_URL | sed s/\{.*//g)
for FILE in releases/*
do
echo "Uploading ${FILE}";
curl \
-H "${API_HEADER}" \
-H "${AUTH_HEADER}" \
-H "Content-Type: $(file -b --mime-type ${FILE})" \
--data-binary "@${FILE}" \
"${UPLOAD_URL}?name=$(basename ${FILE})";
done
- name: Generate SHA256 Hashes
env:
API_HEADER: "Accept: application/vnd.github.v3+json"
AUTH_HEADER: "Authorization: token ${{ secrets.GITHUB_TOKEN }}"
RELEASE_URL: ${{ github.event.release.url }}
run: |
HASH_TABLE="| SHA256 Hash | Filename |"
HASH_TABLE="${HASH_TABLE}\n|-----|-----|\n"
for FILE in releases/*
do
FILENAME=$(basename ${FILE})
HASH=$(sha256sum ${FILE} | cut -d ' ' -f 1)
HASH_TABLE="${HASH_TABLE}|${HASH}|${FILENAME}|\n"
done
echo "${HASH_TABLE}"
curl \
-XPATCH \
-H "${API_HEADER}" \
-H "${AUTH_HEADER}" \
-H "Content-Type: application/json" \
-d "{\"body\": \"${HASH_TABLE}\"}" \
"${RELEASE_URL}";
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ node_modules
# Architecture specific extensions/prefixes
*.[568vq]
[568vq].out
.DS_Store

*.cgo1.go
*.cgo2.c
Expand All @@ -27,4 +28,4 @@ gophish_admin.key

*.exe
gophish.db*
gophish
gophish
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN gulp


# Build Golang binary
FROM golang:1.11 AS build-golang
FROM golang:1.15.2 AS build-golang

WORKDIR /go/src/github.com/gophish/gophish
COPY . .
Expand All @@ -23,7 +23,7 @@ FROM debian:stable-slim
RUN useradd -m -d /opt/gophish -s /bin/bash app

RUN apt-get update && \
apt-get install --no-install-recommends -y jq libcap2-bin && \
apt-get install --no-install-recommends -y jq libcap2-bin ca-certificates && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

Expand All @@ -40,6 +40,6 @@ USER app
RUN sed -i 's/127.0.0.1/0.0.0.0/g' config.json
RUN touch config.json.tmp

EXPOSE 3333 8080 8443
EXPOSE 3333 8080 8443 80

CMD ["./docker/run.sh"]
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2013-2017 Jordan Wright
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
Expand Down
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Gophish
=======

[![Build Status](https://travis-ci.org/gophish/gophish.svg?branch=master)](https://travis-ci.org/gophish/gophish) [![GoDoc](https://godoc.org/github.com/gophish/gophish?status.svg)](https://godoc.org/github.com/gophish/gophish)
![Build Status](https://github.com/gophish/gophish/workflows/CI/badge.svg) [![GoDoc](https://godoc.org/github.com/gophish/gophish?status.svg)](https://godoc.org/github.com/gophish/gophish)

Gophish: Open-Source Phishing Toolkit

Expand All @@ -14,15 +14,21 @@ Gophish: Open-Source Phishing Toolkit
Installation of Gophish is dead-simple - just download and extract the zip containing the [release for your system](https://github.com/gophish/gophish/releases/), and run the binary. Gophish has binary releases for Windows, Mac, and Linux platforms.

### Building From Source
**If you are building from source, please note that Gophish requires Go v1.9 or above!**
**If you are building from source, please note that Gophish requires Go v1.10 or above!**

To build Gophish from source, simply run ```go get github.com/gophish/gophish``` and ```cd``` into the project source directory. Then, run ```go build```. After this, you should have a binary called ```gophish``` in the current directory.
To build Gophish from source, simply run ```git clone https://github.com/gophish/gophish.git``` and ```cd``` into the project source directory. Then, run ```go build```. After this, you should have a binary called ```gophish``` in the current directory.

### Docker
You can also use Gophish via an unofficial Docker container [here](https://hub.docker.com/r/matteoggl/gophish/).
You can also use Gophish via the official Docker container [here](https://hub.docker.com/r/gophish/gophish/).

### Setup
After running the Gophish binary, open an Internet browser to https://localhost:3333 and login with the default username (admin) and password (gophish).
After running the Gophish binary, open an Internet browser to https://localhost:3333 and login with the default username and password listed 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"
```

Releases of Gophish prior to v0.10.1 have a default username of `admin` and password of `gophish`.

### Documentation

Expand All @@ -38,7 +44,7 @@ Gophish - Open-Source Phishing Framework

The MIT License (MIT)

Copyright (c) 2013 - 2018 Jordan Wright
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
Expand Down
9 changes: 9 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Security Policy

## Reporting a Vulnerability

Thank you for taking the time to find and report a security vulnerability in Gophish!

I'd ask that you please send me an email with the details at [email protected] rather than posting any details in the public issue tracker.

I'll happily work with you to get the vulnerability resolved as quickly as possible, and will be sure to credit you (if you'd like!) in the release notes for the following release.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.7.1
0.12.1
6 changes: 3 additions & 3 deletions ansible-playbook/README
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Tested on Ubuntu 16.04.4.
Tested on Ubuntu 20.04 LTS.

Installs Postfix (to listen on localhost only) and the latest Linux gophish binary. setcap is used to allow the gophish binary to listen on privileged ports without running as root.

Expand All @@ -17,7 +17,7 @@ ansible-playbook site.yml -i hosts -u root --private-key=private.key
ansible-playbook site.yml -i hosts -u root --ask-pass

# Log in as non-root user with SSH key (if root login has been disabled)
ansible-playbook site.yml -i hosts --private-key=private.key -u user --become --ask-sudo-pass
ansible-playbook site.yml -i hosts --private-key=private.key -u user --become --ask-become-pass

# Logging in as non-root user without SSH keys
ansible-playbook site.yml -i hosts -u ubuntu --ask-pass --become --ask-sudo-pass
ansible-playbook site.yml -i hosts -u ubuntu --ask-pass --become --ask-become-pass
35 changes: 20 additions & 15 deletions ansible-playbook/roles/gophish/files/config.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
{
"admin_server" : {
"listen_url" : "127.0.0.1:3333",
"use_tls" : true,
"cert_path" : "gophish_admin.crt",
"key_path" : "gophish_admin.key"
},
"phish_server" : {
"listen_url" : "0.0.0.0:80",
"use_tls" : false,
"cert_path" : "example.crt",
"key_path": "example.key"
},
"db_name" : "sqlite3",
"db_path" : "gophish.db",
"migrations_prefix" : "db/db_"
"admin_server": {
"listen_url": "127.0.0.1:3333",
"use_tls": true,
"cert_path": "/etc/ssl/crt/gophish.crt",
"key_path": "/etc/ssl/private/gophish.pem"
},
"phish_server": {
"listen_url": "127.0.0.1:8080",
"use_tls": true,
"cert_path": "/etc/ssl/crt/gophish.crt",
"key_path": "/etc/ssl/private/gophish.pem"
},
"db_name": "sqlite3",
"db_path": "gophish.db",
"migrations_prefix": "db/db_",
"contact_address": "",
"logging": {
"filename": "gophish.log",
"level": ""
}
}
Loading