Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatCommand ¶
Types ¶
type AWSDetonator ¶
type AWSDetonator struct {
DetonationFunc func(awsConfig aws.Config, detonationUuid uuid.UUID) error
}
The AWS Detonator allows to send arbitrary requests using the AWS SDK, pre-configured to inject the detonation UUID in the user-agent.
func NewAWSDetonator ¶
func (*AWSDetonator) Detonate ¶
func (m *AWSDetonator) Detonate() (string, error)
type CommandDetonator ¶
type CommandDetonatorImpl ¶
type CommandDetonatorImpl struct { Detonator CommandDetonator Technique *OSLayerAttackTechnique }
func NewCommandDetonator ¶
func NewCommandDetonator(detonator CommandDetonator, command string) *CommandDetonatorImpl
func (*CommandDetonatorImpl) Detonate ¶
func (m *CommandDetonatorImpl) Detonate() (string, error)
type LocalCommandExecutor ¶
type LocalCommandExecutor struct{}
func (*LocalCommandExecutor) RunCommand ¶
func (m *LocalCommandExecutor) RunCommand(command string) (string, error)
type OSLayerAttackTechnique ¶
type OSLayerAttackTechnique struct {
Command string
}
TODO probably not a full struct needed
type SSHCommandExecutor ¶
type SSHCommandExecutor struct { SSHHostname string SSHUsername string SSHKeyFile string SSHConnection *ssh.Client // contains filtered or unexported fields }
func NewSSHCommandExecutor ¶
func NewSSHCommandExecutor(hostname string, username string, keyFile string) (*SSHCommandExecutor, error)
func (*SSHCommandExecutor) RunCommand ¶
func (m *SSHCommandExecutor) RunCommand(command string) (string, error)
type StratusRedTeamDetonator ¶
type StratusRedTeamDetonator struct {
Technique *stratus.AttackTechnique
}
func StratusRedTeamTechnique ¶
func StratusRedTeamTechnique(ttp string) *StratusRedTeamDetonator
func (*StratusRedTeamDetonator) Detonate ¶
func (m *StratusRedTeamDetonator) Detonate() (string, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.