agent

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(verbose bool, serverURL string, timeout int, webhookURL string, commandRegex *regexp.Regexp) error

Main Agent logic

Types

type Agent

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

type CommandOutput

type CommandOutput struct {
	Command string
	Output  string
	Success bool
}

type CommandOutputMsg

type CommandOutputMsg struct {
	Command  string
	Success  bool
	AgentID  string
	Username string
	Output   string
	Random   string // Avoids Teams caching the message, resulting in C2 Server not receiving command output
}

type NotifyMsg

type NotifyMsg struct {
	AgentID  string
	Username string
	Random   string
}

Jump to

Keyboard shortcuts

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