You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Custom error page templating for 404 error pages in phishing handler
9
11
10
-
[Gophish](https://getgophish.com) is an open-source phishing toolkit designed for businesses and penetration testers. It provides the ability to quickly and easily setup and execute phishing engagements and security awareness training.
12
+
Allows to show a more benign 404 page. Also may be used for redirecting with some Javascript: `<script>window.location.replace("https://target.fqdn");</script>`
11
13
12
-
### Install
14
+
Changes made:
15
+
- Add `templates/404.html`
16
+
- In `controllers/phish.go`, add custom replacements for `http.NotFound` and `http.Error`
13
17
14
-
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.
15
-
16
-
### Building From Source
17
-
**If you are building from source, please note that Gophish requires Go v1.10 or above!**
18
-
19
-
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.
20
-
21
-
### Docker
22
-
You can also use Gophish via the official Docker container [here](https://hub.docker.com/r/gophish/gophish/).
23
-
24
-
### Setup
25
-
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.
26
-
e.g.
27
-
```
28
-
time="2020-07-29T01:24:08Z" level=info msg="Please login with the username admin and the password 4304d5255378177d"
29
-
```
30
-
31
-
Releases of Gophish prior to v0.10.1 have a default username of `admin` and password of `gophish`.
32
-
33
-
### Documentation
34
-
35
-
Documentation can be found on our [site](http://getgophish.com/documentation). Find something missing? Let us know by filing an issue!
36
-
37
-
### Issues
38
-
39
-
Find a bug? Want more features? Find something missing in the documentation? Let us know! Please don't hesitate to [file an issue](https://github.com/gophish/gophish/issues/new) and we'll get right on it.
40
-
41
-
### License
42
-
```
43
-
Gophish - Open-Source Phishing Framework
44
-
45
-
The MIT License (MIT)
46
-
47
-
Copyright (c) 2013 - 2020 Jordan Wright
48
-
49
-
Permission is hereby granted, free of charge, to any person obtaining a copy
50
-
of this software ("Gophish Community Edition") and associated documentation files (the "Software"), to deal
51
-
in the Software without restriction, including without limitation the rights
52
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
53
-
copies of the Software, and to permit persons to whom the Software is
54
-
furnished to do so, subject to the following conditions:
55
-
56
-
The above copyright notice and this permission notice shall be included in
57
-
all copies or substantial portions of the Software.
58
-
59
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
60
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
61
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
62
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
63
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
64
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
0 commit comments