core

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: MIT Imports: 15 Imported by: 2

Documentation

Overview

core - the "core" package is used to organize all primary libraries and utilities that are made use of across several aspects of the application.

This can include anything from custom data structures, to colors for text output.

Index

Constants

This section is empty.

Variables

View Source
var ActiveChat = false

Status check variable to know if user is in the chat CLI or not so messages can be displayed properly

View Source
var ActiveSession int

ActiveSession - global copy of the currently active session for the polling library to track

View Source
var AuthURL string

AuthURL - Primary auth URL scheme, populated by the config

View Source
var ErrorColorBold = color.New(color.FgRed).Add(color.Bold)

ErrorColorBold - bold red color useful for error messages

View Source
var ErrorColorBoldIns = color.New(color.FgRed).Add(color.Bold).SprintFunc()

ErrorColorBoldIns - insert variant for variables, bold red color useful for error messages

View Source
var ErrorColorUnderline = color.New(color.FgRed).Add(color.Underline)

ErrorColorUnderline - underlined bold red color useful for strong error messages

View Source
var GreenColor = color.New(color.FgGreen)

GreenColor - green color for text output

View Source
var GreenColorIns = color.New(color.FgGreen).SprintFunc()

GreenColorIns - insert variant for variables, green color for text output

View Source
var MagentaColor = color.New(color.FgMagenta)

MagentaColor - magenta color for text output

View Source
var MagentaColorBold = color.New(color.FgMagenta).Add(color.Bold)

MagentaColorBold - bold magenta color for text output

View Source
var RedColor = color.New(color.FgRed)

RedColor - red color for text output

View Source
var RedColorIns = color.New(color.FgRed).SprintFunc()

RedColorIns - insert variant for variables, red color for text output

View Source
var RelayData []byte

RelayData - byte slice for storing json data that is relayed to a session subshell

View Source
var SuccessColorBold = color.New(color.FgGreen).Add(color.Bold)

SuccessColorBold - bold green color useful for success messages

View Source
var WarningColorBold = color.New(color.FgYellow).Add(color.Bold)

WarningColorBold - bold yellow color useful for warning messages

View Source
var WolfPackHTTP *http.Client

Functions

func ChatRelay added in v1.0.1

func ChatRelay()

func CheckForFileDownload

func CheckForFileDownload(jsonData []byte) bool

CheckForFileDownload - this polling function is only triggered by the session CLI's download subcommand, this polls the wolfpack server to see if an session's implant has returned any files data to download

func CheckForNewChatData added in v1.0.1

func CheckForNewChatData(jsonData []byte) bool

CheckForNewChatData - polls the wolfpack server to see if any new chat data has come through

func CheckForNewSession

func CheckForNewSession(jsonData []byte) bool

CheckForNewSession - Checks the Wolfpack server to see if a new session has been established.

func CheckForSessionData

func CheckForSessionData(jsonData []byte) bool

CheckForSessionData - polls the wolfpack server to see if an session's implant has returned any data

func DownloadFile

func DownloadFile(filename string, fileb64 string)

DownloadFile - Reads a base64 encoded string and writes it out to a local file

func InitializeWolfPackRequests

func InitializeWolfPackRequests(configFile *string) error

InitializeWolfPackRequests - Initializes a https request client that can be used for authenticated requests throughout the lupo client

func Poll

func Poll()

Poll - Executes all polling functions starting with

func ReadConfigFile

func ReadConfigFile(configFile *string) error

ReadConfigFile - reads in the configuration json file for the lupo client

func SessionRelay

func SessionRelay()

SessionRelay - function expected to be called by a goroutine in the context of the session subshell to check if any new data exists to be relayed

func UploadFile

func UploadFile(file string) string

UploadFile - Reads a file to be uploaded and converts it to base64 to pass to the server as a response for the session

Types

type WolfPackServer

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

WolfPackServer - configuration struct to tell the client how to communicate with the lupo server

var WolfPackServerConfig *WolfPackServer

Jump to

Keyboard shortcuts

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