gopserver

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunGoPhishProxyHTTPCmd

func RunGoPhishProxyHTTPCmd(host string, port string, dstUrl string, gophishUrl string, auth string, realm string, whiteList []string)

func RunRedirectProxyHTTPCmd

func RunRedirectProxyHTTPCmd(host string, port string, dstUrl string, auth string, realm string, redirectPrefix string)

func RunRedirectProxyHTTPSCmd

func RunRedirectProxyHTTPSCmd(host string, port string, dstUrl string, auth string, realm string, redirectPrefix string)

func RunRedirectServerHTTPCmd

func RunRedirectServerHTTPCmd(host string, port string, vhost string, destination string, https bool) error

func RunServerHTTPCmd

func RunServerHTTPCmd(object ServerInterface) error

func RunServerHTTPSCmd

func RunServerHTTPSCmd(object ServerInterface) error

Types

type FilseServer

type FilseServer struct {
	Server    Server
	Directory string
}

func (FilseServer) CreateMiddleware

func (fs FilseServer) CreateMiddleware() *negroni.Negroni

func (FilseServer) CreateRouter

func (fs FilseServer) CreateRouter() *mux.Router

func (FilseServer) GetCertSubject

func (fs FilseServer) GetCertSubject() string

func (FilseServer) GetServer

func (fs FilseServer) GetServer(r *mux.Router, n *negroni.Negroni) (*http.Server, error)

type GoPhishReverseProxy

type GoPhishReverseProxy struct {
	// contains filtered or unexported fields
}

func (*GoPhishReverseProxy) HandleFunc

func (rp *GoPhishReverseProxy) HandleFunc(w http.ResponseWriter, r *http.Request)

func (*GoPhishReverseProxy) HandleTrackFunc

func (rp *GoPhishReverseProxy) HandleTrackFunc(w http.ResponseWriter, r *http.Request)

type JSExfilLogMiddleware

type JSExfilLogMiddleware struct {
	// contains filtered or unexported fields
}

func (JSExfilLogMiddleware) ServeHTTP

type JavascriptExfilServer

type JavascriptExfilServer struct {
	Server   *Server
	ExfilUrl string
	// Box      *packr.Box
	InputMu *sync.Mutex
}

func (JavascriptExfilServer) CreateMiddleware

func (js JavascriptExfilServer) CreateMiddleware() *negroni.Negroni

func (JavascriptExfilServer) CreateRouter

func (js JavascriptExfilServer) CreateRouter() *mux.Router

func (JavascriptExfilServer) GetCertSubject

func (js JavascriptExfilServer) GetCertSubject() string

func (JavascriptExfilServer) GetServer

func (js JavascriptExfilServer) GetServer(r *mux.Router, n *negroni.Negroni) (*http.Server, error)

type NewServer

type NewServer struct {
	Server Server
}

func (NewServer) CreateMiddleware

func (s NewServer) CreateMiddleware() *negroni.Negroni

func (NewServer) CreateRouter

func (s NewServer) CreateRouter() *mux.Router

func (NewServer) GetCertSubject

func (s NewServer) GetCertSubject() string

func (NewServer) GetServer

func (s NewServer) GetServer(r *mux.Router, n *negroni.Negroni) (*http.Server, error)

type RedirectProxy

type RedirectProxy struct {
	// contains filtered or unexported fields
}

func (*RedirectProxy) HandleFunc

func (rp *RedirectProxy) HandleFunc(w http.ResponseWriter, r *http.Request)

type Server

type Server struct {
	Host   string
	Port   string
	Scheme string
	Vhost  string
	Auth   string
	Realm  string
}

func (Server) CreateMiddleware

func (s Server) CreateMiddleware() *negroni.Negroni

func (Server) GetCertSubject

func (s Server) GetCertSubject() string

type ServerInterface

type ServerInterface interface {
	GetCertSubject() string
	CreateRouter() *mux.Router
	CreateMiddleware() *negroni.Negroni
	GetServer(*mux.Router, *negroni.Negroni) (*http.Server, error)
}

type XRealIPMiddleware

type XRealIPMiddleware struct{}

func (XRealIPMiddleware) ServeHTTP

Jump to

Keyboard shortcuts

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