messages

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2017 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

You should have received a copy of the GNU General Public License along with Merlin. If not, see <http://www.gnu.org/licenses/>.

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"`
}

JSON Agent Control Commands

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"`
}

JSON Agent Information Payload

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"`
}

JSON Object for Messages

type CmdPayload

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

JSON Payload MESSAGE TYPE: CmdPayload

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
}

JSON Command Results

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"`
}

JSON System Information Payload

Jump to

Keyboard shortcuts

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