exploit

package
v0.0.0-...-0c672af Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetAWSExploiter

func SetAWSExploiter(exploiter awsExploiter)

SetAWSExploiter is used to set, either the stsCredentials provider used to access AWS or the mock test implementation

func TryGetExploitFunction

func TryGetExploitFunction(expolitFnName string) (err error)

TryGetExploitFunction Use reflection to attempt linkage to configured ExploitFn.

Types

type AWSInfo

type AWSInfo struct {
	Account string
	Arn     string
	UserID  string
}

AWSInfo AWS STS data returned by by exploit function awsSTS

type Exploit

type Exploit struct {
	Fn       string
	Secret   string
	Filename string
	Output   string //strategy specific information set by the strategy method
}

Exploit is the receiver used to run the optional configurable function, exploitFn. Secret is the detected secret found in the file specified in Filename. Fn is the name of the function found by reflection. Fn may set any JSON formatted data in the Output field. When not empty, Output will be written to the output defect report under AdditionalInfo

func (*Exploit) AwsSTS

func (exploit *Exploit) AwsSTS() (err error)

AwsSTS Hook function configuration, ExploitFn

func (*Exploit) Run

func (this *Exploit) Run() (err error)

Run executes configured ExploitFn

Jump to

Keyboard shortcuts

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