messages

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2019 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentControl

type AgentControl struct {
	Job     string `json:"job"`
	Command string `json:"command"`
	Args    string `json:"args,omitempty"`
	Result  string `json:"result"`
}

AgentControl is a JSON payload to send control messages to the agent (i.e. kill or die)

type AgentInfo

type AgentInfo struct {
	Version       string      `json:"version,omitempty"`
	Build         string      `json:"build,omitempty"`
	WaitTime      string      `json:"waittime,omitempty"`
	PaddingMax    int         `json:"paddingmax,omitempty"`
	MaxRetry      int         `json:"maxretry,omitempty"`
	FailedCheckin int         `json:"failedcheckin,omitempty"`
	Skew          int64       `json:"skew,omitempty"`
	Proto         string      `json:"proto,omitempty"`
	SysInfo       interface{} `json:"sysinfo,omitempty"`
}

AgentInfo is a JSON payload containing information about the agent and its configuration

type Base

type Base struct {
	Version float32     `json:"version"`
	ID      uuid.UUID   `json:"id"`
	Type    string      `json:"type"`
	Payload interface{} `json:"payload,omitempty"`
	Padding string      `json:"padding"`
}

Base is the base JSON Object for HTTP POST payloads

type CmdPayload

type CmdPayload struct {
	Command string `json:"executable"`
	Args    string `json:"args"`
	Job     string `json:"job"`
}

CmdPayload is the JSON payload for commands to execute on an agent

type CmdResults

type CmdResults struct {
	Job     string `json:"job"`
	Stdout  string `json:"stdout"`
	Stderr  string `json:"stderr"`
	Padding string `json:"padding"` // Padding to help evade detection
}

CmdResults is a JSON payload that contains the results of an executed command from an agent

type FileTransfer added in v0.5.0

type FileTransfer struct {
	FileLocation string `json:"dest"`
	FileBlob     string `json:"blob"`
	IsDownload   bool   `json:"download"`
	Job          string `json:"job"`
}

FileTransfer is the JSON payload to transfer files between the server and agent

type Shellcode added in v0.6.4

type Shellcode struct {
	Method string `json:"method"`
	Bytes  string `json:"bytes"` // Base64 string of shellcode bytes
	Job    string `json:"job"`
	PID    uint32 `json:"pid,omitempty"` // Process ID for remote injection
}

Shellcode is a JSON payload containing shellcode and the method for execution

type SysInfo

type SysInfo struct {
	Platform     string   `json:"platform,omitempty"`
	Architecture string   `json:"architecture,omitempty"`
	UserName     string   `json:"username,omitempty"`
	UserGUID     string   `json:"userguid,omitempty"`
	HostName     string   `json:"hostname,omitempty"`
	Pid          int      `json:"pid,omitempty"`
	Ips          []string `json:"ips,omitempty"`
}

SysInfo is a JSON payload containing information about the system where the agent is running

Jump to

Keyboard shortcuts

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