cmd

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommonArgs

func AddCommonArgs(cmd *cobra.Command)

func AddPlaceholderArgs

func AddPlaceholderArgs(cmd *cobra.Command)

func ContextualScanReport

func ContextualScanReport(reporter *report.Reporter)

func CreateTable

func CreateTable(headers []string) *tablewriter.Table

func DisplayReportTable

func DisplayReportTable(reporter *report.Reporter)

func DisplayUnexpectedErrorMessage

func DisplayUnexpectedErrorMessage()

func GetCookies

func GetCookies() []string

func GetExcludeScans added in v0.7.3

func GetExcludeScans() []string

func GetHeaders

func GetHeaders() []string

func GetIncludeScans added in v0.7.3

func GetIncludeScans() []string

func GetProxy

func GetProxy() string

func GetRateLimit

func GetRateLimit() string

func NewHTTPClientFromArgs

func NewHTTPClientFromArgs(rateLimitArg string, proxyArg string, headersArg []string, httpCookiesArg []string) (*request.Client, error)

func NewProgressBar

func NewProgressBar(max int) *progressbar.ProgressBar

func WellKnownPathsScanReport

func WellKnownPathsScanReport(reporter *report.Reporter)

Types

type ScanVulnerabilityReport

type ScanVulnerabilityReport struct {
	OperationMethod string `json:"method"`
	OperationPath   string `json:"path"`

	Vuln *report.VulnerabilityReport `json:"vuln"`
}

func NewFullScanVulnerabilityReports

func NewFullScanVulnerabilityReports(reports []*report.ScanReport) []*ScanVulnerabilityReport

func NewScanVulnerabilityReports

func NewScanVulnerabilityReports(report *report.ScanReport) []*ScanVulnerabilityReport

type SortByPathAndSeverity

type SortByPathAndSeverity []*ScanVulnerabilityReport

func (SortByPathAndSeverity) Len

func (a SortByPathAndSeverity) Len() int

func (SortByPathAndSeverity) Less

func (a SortByPathAndSeverity) Less(i, j int) bool

func (SortByPathAndSeverity) Swap

func (a SortByPathAndSeverity) Swap(i, j int)

Jump to

Keyboard shortcuts

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