Documentation ¶
Overview ¶
*
## ## ######## ## ## ####### ######## ######## ######## ######## ### ## ## ## ## ## ## ## ## ## ## ## ## ## ## #### ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ###### ## ## ## ## ## ######## ## ## ###### ######## ## #### ## ## ## ## ## ## ## ## ## ## ## ## ## ## ### ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ######## ### ### ####### ## ## ######## ######## ## ##
"NewOrder" - Reverse Proxy SE "CHANGE THE WORLD..." Copyright 2022 (C) NEMESIS. neworder@tutamail.com. All rights reserved.
* Package statichttp serves simple HTTP server
Index ¶
Constants ¶
const ( // Name of this module Name = "static.http" // Description of this module Description = "Exposes a simple HTTP server to serve static resources during the MiTM session" // Author of this module Author = "NEMESIS" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileSystem ¶
type FileSystem struct {
// contains filtered or unexported fields
}
FileSystem custom file system handler
type StaticHTTP ¶
type StaticHTTP struct { session.SessionModule Enabled bool Protocol string ListeningHost string LocalPath string URLPath string // contains filtered or unexported fields }
StaticHTTP module
func Load ¶
func Load(s *session.Session) (m *StaticHTTP, err error)
Load configures the module by initializing its main structure and variables
func (*StaticHTTP) Author ¶
func (module *StaticHTTP) Author() string
Author returns the module author
func (*StaticHTTP) Description ¶
func (module *StaticHTTP) Description() string
Description returns the module description
func (*StaticHTTP) MakeDestinationURL ¶
func (module *StaticHTTP) MakeDestinationURL(URL *url.URL) (destination string)
func (*StaticHTTP) Prompt ¶
func (module *StaticHTTP) Prompt()
Prompt prints module status based on the provided parameters
func (*StaticHTTP) Start ¶
func (module *StaticHTTP) Start() (err error)
Start runs the Static HTTP server module