server

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: MIT Imports: 19 Imported by: 1

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

Constants

This section is empty.

Variables

View Source
var CurrentOperator string

CurrentOperator - keeps track of the current user that is actively interacting with the WolfPack server during the request flow

View Source
var IsWolfPackExec bool

IsWolfPackExec - global value to let grumble run functions determine if the current command is being executed in the context of a

PSK - Global variable for the Pre-shared key used in implant authentication

View Source
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 ErrorHandler

func ErrorHandler(err error) error

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 StartTCPServer

func StartTCPServer(tcpServer net.Listener, cryptoPSK string)

StartTCPServer - starts a tcp server with given parameters specified during Listener creation

func TCPServerHandler

func TCPServerHandler(conn net.Conn, cryptoPSK string)

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

This section is empty.

Jump to

Keyboard shortcuts

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