Documentation
¶
Overview ¶
server - the "server" package is used to organize all server handler functionality of the application.
Any functionality related to handling connections, data, and server configurations are parsed and organized by this package.
Index ¶
- Variables
- func DNSServerHandler(w dns.ResponseWriter, r *dns.Msg)
- func ErrorHandler(err error) error
- func HTTPServerHandler(w http.ResponseWriter, r *http.Request)
- func StagerServerHandler(dir string) http.HandlerFunc
- func StartTCPServer(tcpServer net.Listener, cryptoPSK string)
- func TCPServerHandler(conn net.Conn, cryptoPSK string)
- func WolfPackServerHandler(w http.ResponseWriter, r *http.Request)
- type ChunkTracker
- type DNSListener
- type MessageChunks
Constants ¶
This section is empty.
Variables ¶
var CurrentOperator string
CurrentOperator - keeps track of the current user that is actively interacting with the WolfPack server during the request flow
var IsWolfPackExec bool
IsWolfPackExec - global value to let grumble run functions determine if the current command is being executed in the context of a
var PSK string
PSK - Global variable for the Pre-shared key used in implant authentication
var WolfPackApp *grumble.App
WolfPackApp - global value to store the current app context for the grumble app and access things like command execution in the grumble context
Functions ¶
func DNSServerHandler ¶ added in v1.3.0
func DNSServerHandler(w dns.ResponseWriter, r *dns.Msg)
func ErrorHandler ¶
ErrorHandler - wrapper function to hand off server related errors to insure servers Handler functions maintain correct interface mappings
func HTTPServerHandler ¶
func HTTPServerHandler(w http.ResponseWriter, r *http.Request)
HTTPServerHandler - Handles all HTTPS/HTTPServer requests by passing data to handler sub-functions based on request type.
Also sets HTTP server parameters and any other applicable HTTP server level variables.
func StagerServerHandler ¶ added in v1.3.1
func StagerServerHandler(dir string) http.HandlerFunc
StagerServerHandler - returns an http.HandlerFunc that serves static files from the given directory. This handler does nothing except serve files — no PSK validation, no session handling, no implant routing.
func StartTCPServer ¶
StartTCPServer - starts a tcp server with given parameters specified during Listener creation
func TCPServerHandler ¶
func WolfPackServerHandler ¶
func WolfPackServerHandler(w http.ResponseWriter, r *http.Request)
WolfPackServerHandler - Handles all Wolfpack server requests over HTTPS by passing data to handler sub-functions
Also sets HTTP server parameters and any other applicable HTTP server level variables.
Types ¶
type ChunkTracker ¶ added in v1.3.0
type DNSListener ¶ added in v1.3.0
type DNSListener struct {
// contains filtered or unexported fields
}
func NewDNSListener ¶ added in v1.3.0
func NewDNSListener(address string, port int, psk string) *DNSListener
type MessageChunks ¶ added in v1.3.0
type MessageChunks struct {
// contains filtered or unexported fields
}