transport

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DestFile int32 = iota
	DestStdout
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GenericHTTPRequest

type GenericHTTPRequest struct {
	AgentID   string   `json:"agent_id"`
	RequestID string   `json:"request_id"`
	Opcode    int32    `json:"opcode"`
	Args      [][]byte `json:"args"`
}

GenericHTTPRequest is the structure sent by the C2 when an operator requests for an agent to perform a task.

type GenericHTTPResponse

type GenericHTTPResponse struct {
	AgentID   string           `json:"agent_id"`
	RequestID string           `json:"request_id"`
	Responses []ResponseDetail `json:"responses"`
}

GenericHTTPResponse is the structure received from an agent after a task is performed

type Registration

type Registration struct {
	AgentID   string `json:"agent_id"`
	OS        string `json:"os"`
	Arch      string `json:"arch"`
	Username  string `json:"username"`
	Hostname  string `json:"hostname"`
	UID       string `json:"uid"`
	GID       string `json:"gid"`
	PID       string `json:"pid"`
	HomeDir   string `json:"home_dir"`
	IPAddress string `json:"ip_address"`
}

Registration is the initial data that is received from a first-time authenticating agent Can be viewed with the 'info' command

type ResponseDetail

type ResponseDetail struct {
	Status builderpb.Status `json:"status"`
	Dest   int32            `json:"dest"` // Where to send response to (file, stdout)
	Name   string           `json:"name"` // Name of file to save, if applicable
	Data   []byte           `json:"data"` // file or output data
}

Jump to

Keyboard shortcuts

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