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 ¶
- Variables
- func ChatRelay()
- func CheckForFileDownload(jsonData []byte) bool
- func CheckForNewChatData(jsonData []byte) bool
- func CheckForNewSession(jsonData []byte) bool
- func CheckForSessionData(jsonData []byte) bool
- func DownloadFile(filename string, fileb64 string)
- func InitializeWolfPackRequests(configFile *string) error
- func Poll()
- func ReadConfigFile(configFile *string) error
- func SessionRelay()
- func UploadFile(file string) string
- type WolfPackServer
Constants ¶
This section is empty.
Variables ¶
var ActiveChat = false
Status check variable to know if user is in the chat CLI or not so messages can be displayed properly
var ActiveSession int
ActiveSession - global copy of the currently active session for the polling library to track
var AuthURL string
AuthURL - Primary auth URL scheme, populated by the config
ErrorColorBold - bold red color useful for error messages
ErrorColorBoldIns - insert variant for variables, bold red color useful for error messages
ErrorColorUnderline - underlined bold red color useful for strong error messages
var GreenColor = color.New(color.FgGreen)
GreenColor - green color for text output
var GreenColorIns = color.New(color.FgGreen).SprintFunc()
GreenColorIns - insert variant for variables, green color for text output
var MagentaColor = color.New(color.FgMagenta)
MagentaColor - magenta color for text output
MagentaColorBold - bold magenta color for text output
var RedColor = color.New(color.FgRed)
RedColor - red color for text output
var RedColorIns = color.New(color.FgRed).SprintFunc()
RedColorIns - insert variant for variables, red color for text output
var RelayData []byte
RelayData - byte slice for storing json data that is relayed to a session subshell
SuccessColorBold - bold green color useful for success messages
WarningColorBold - bold yellow color useful for warning messages
var WolfPackHTTP *http.Client
Functions ¶
func CheckForFileDownload ¶
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
CheckForNewChatData - polls the wolfpack server to see if any new chat data has come through
func CheckForNewSession ¶
CheckForNewSession - Checks the Wolfpack server to see if a new session has been established.
func CheckForSessionData ¶
CheckForSessionData - polls the wolfpack server to see if an session's implant has returned any data
func DownloadFile ¶
DownloadFile - Reads a base64 encoded string and writes it out to a local file
func InitializeWolfPackRequests ¶
InitializeWolfPackRequests - Initializes a https request client that can be used for authenticated requests throughout the lupo client
func ReadConfigFile ¶
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 ¶
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