crash.software
Projects
Pull Requests
Issues
Builds
gophish
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
gophish
Files
🤬
Sign In
faadf0c8
ROOT
/
controllers
/
phish.go
Search
History
381 lines
|
ISO-8859-1
|
11 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
ErrInvalidRequest
ErrCampaignComplete
TransparencyResponse
Server
:
string
ContactAddress
:
string
SendDate
:
time.Time
TransparencySuffix
PhishingServerOption
PhishingServer
server
:
*http.Server
config
:
config.PhishServer
contactAddress
:
string
NewPhishingServer
(config config.PhishServer, options ...PhishingServerOption)
:
*PhishingServer
WithContactAddress
(addr string)
:
PhishingServerOption
renderPhishResponse
(w http.ResponseWriter, r *http.Request, ptx models.PhishingTemplateContext, p models.Page)
setupContext
(r *http.Request)
:
(*http.Request, error)
*PhishingServer
Start
()
:
error
Shutdown
()
:
error
registerRoutes
()
TrackHandler
(w http.ResponseWriter, r *http.Request)
ReportHandler
(w http.ResponseWriter, r *http.Request)
PhishHandler
(w http.ResponseWriter, r *http.Request)
RobotsHandler
(w http.ResponseWriter, r *http.Request)
TransparencyHandler
(w http.ResponseWriter, r *http.Request)
All occurrences
Please wait...
Page is in error, reload to recover