Browse Source

Fixed static file handling on phishing server + documentation. Fixes #164

pull/233/head
Jordan Wright 5 years ago
parent
commit
49b0646454
3 changed files with 5 additions and 1 deletions
  1. +1
    -1
      controllers/route.go
  2. +4
    -0
      static/endpoint/.gitignore
  3. BIN
      static/gophish_user_guide.pdf

+ 1
- 1
controllers/route.go View File

@ -84,7 +84,7 @@ func CreateAdminRouter() http.Handler {
// CreatePhishingRouter creates the router that handles phishing connections.
func CreatePhishingRouter() http.Handler {
router := mux.NewRouter()
router.PathPrefix("/static").Handler(http.FileServer(http.Dir("./static/endpoint/")))
router.PathPrefix("/static/").Handler(http.StripPrefix("/static/", http.FileServer(http.Dir("./static/endpoint/"))))
router.HandleFunc("/track", PhishTracker)
router.HandleFunc("/{path:.*}", PhishHandler)
return router

+ 4
- 0
static/endpoint/.gitignore View File

@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

BIN
static/gophish_user_guide.pdf View File


Loading…
Cancel
Save