exploits

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Enabled        bool                   `json:"enabled" yaml:"enabled"`
	ScannersList   []string               `yaml:"scanners_list" mapstructure:"scanners_list"`
	Inputs         []types.Input          `yaml:"inputs" mapstructure:"inputs"`
	InputFromVuln  bool                   `yaml:"input_from_vuln" mapstructure:"input_from_vuln"`
	ScannersConfig *common.ScannersConfig `yaml:"scanners_config" mapstructure:"scanners_config"`
}

type Exploits

type Exploits struct {
	// contains filtered or unexported fields
}

func New

func New(conf Config) *Exploits

func (Exploits) GetType

func (e Exploits) GetType() types.FamilyType

func (Exploits) Run

type MergedExploit

type MergedExploit struct {
	// Embed the common exploit structure
	common.Exploit
	// Add the option that it could be identified by multiple scanners in the family
	IdentifiedByScanners []string
}

type MergedExploits

type MergedExploits []MergedExploit

func NewMergedExploits

func NewMergedExploits() MergedExploits

func (MergedExploits) Merge

func (m MergedExploits) Merge(other *common.Results) MergedExploits

type Results

type Results struct {
	Metadata types.Metadata
	Exploits MergedExploits `yaml:"exploits"`
}

func (*Results) IsResults

func (*Results) IsResults()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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