types

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SupportedExecutors = []string{"bash", "command_prompt", "manual", "powershell", "sh"}

Functions

This section is empty.

Types

type Atomic

type Atomic struct {
	AttackTechnique string       `yaml:"attack_technique"`
	DisplayName     string       `yaml:"display_name"`
	AtomicTests     []AtomicTest `yaml:"atomic_tests"`
}

type AtomicExecutor

type AtomicExecutor struct {
	Name              string `yaml:"name"`
	ElevationRequired bool   `yaml:"elevation_required"`
	Command           string `yaml:"command,omitempty"`
	Steps             string `yaml:"steps,omitempty"`
	CleanupCommand    string `yaml:"cleanup_command,omitempty"`

	ExecutedCommand map[string]interface{} `yaml:"executed_command,omitempty"`
}

type AtomicTest

type AtomicTest struct {
	Name               string   `yaml:"name"`
	GUID               string   `yaml:"auto_generated_guid,omitempty"`
	Description        string   `yaml:"description,omitempty"`
	SupportedPlatforms []string `yaml:"supported_platforms"`

	InputArugments map[string]InputArgument `yaml:"input_arguments,omitempty"`

	DependencyExecutorName string `yaml:"dependency_executor_name,omitempty"`

	Dependencies []Dependency    `yaml:"dependencies,omitempty"`
	Executor     *AtomicExecutor `yaml:"executor"`
}

type Dependency

type Dependency struct {
	Description      string `yaml:"description"`
	PrereqCommand    string `yaml:"prereq_command,omitempty"`
	GetPrereqCommand string `yaml:"get_prereq_command,omitempty"`
}

type InputArgument

type InputArgument struct {
	Description   string `yaml:"description"`
	Type          string `yaml:"type"`
	Default       string `yaml:"default"`
	ExpectedValue string `yaml:"expected_value,omitempty"`
}

Jump to

Keyboard shortcuts

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