scan

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scan

type Scan struct {
	Operations request.Operations
	Reporter   *report.Reporter

	OperationHandlers []ScanHandler
	Handlers          []ScanHandler
}

func NewOpenAPIScan added in v0.3.0

func NewOpenAPIScan(openAPIUrlOrPath string, validToken *string, reporter *report.Reporter) (*Scan, error)

func NewScan added in v0.3.0

func NewScan(operations request.Operations, reporter *report.Reporter) (*Scan, error)

func NewURLScan added in v0.3.0

func NewURLScan(method string, url string, header http.Header, cookies []http.Cookie, reporter *report.Reporter) (*Scan, error)

func (*Scan) AddOperationScanHandler added in v0.4.0

func (s *Scan) AddOperationScanHandler(handler ScanHandler) *Scan

func (*Scan) AddScanHandler added in v0.3.0

func (s *Scan) AddScanHandler(handler ScanHandler) *Scan

func (*Scan) Execute

func (s *Scan) Execute() (*report.Reporter, []error, error)

func (*Scan) ExecuteOperation added in v0.3.0

func (s *Scan) ExecuteOperation(operation *request.Operation, handlers []ScanHandler) ([]error, error)

func (*Scan) ValidateOperation added in v0.3.0

func (s *Scan) ValidateOperation(operation *request.Operation) error

func (*Scan) WithAlgNoneJwtScan

func (s *Scan) WithAlgNoneJwtScan() *Scan

func (*Scan) WithAllBestPracticesScans added in v0.3.0

func (s *Scan) WithAllBestPracticesScans() *Scan

func (*Scan) WithAllDiscoverScans added in v0.4.0

func (s *Scan) WithAllDiscoverScans() *Scan

func (*Scan) WithAllScans added in v0.2.0

func (s *Scan) WithAllScans() *Scan

func (*Scan) WithAllVulnsScans added in v0.3.0

func (s *Scan) WithAllVulnsScans() *Scan

func (*Scan) WithDiscoverableGraphQLPathScan added in v0.4.2

func (s *Scan) WithDiscoverableGraphQLPathScan() *Scan

func (*Scan) WithDiscoverableOpenAPIScan added in v0.4.0

func (s *Scan) WithDiscoverableOpenAPIScan() *Scan

func (*Scan) WithGraphQLIntrospectionScan added in v0.4.0

func (s *Scan) WithGraphQLIntrospectionScan() *Scan

func (*Scan) WithHTTPCookiesBestPracticesScan added in v0.4.0

func (s *Scan) WithHTTPCookiesBestPracticesScan() *Scan

func (*Scan) WithHTTPHeadersBestPracticesScan added in v0.3.0

func (s *Scan) WithHTTPHeadersBestPracticesScan() *Scan

func (*Scan) WithHTTPTraceMethodBestPracticesScan added in v0.3.0

func (s *Scan) WithHTTPTraceMethodBestPracticesScan() *Scan

func (*Scan) WithJWTNullSignatureScan added in v0.2.0

func (s *Scan) WithJWTNullSignatureScan() *Scan

func (*Scan) WithNotVerifiedJwtScan

func (s *Scan) WithNotVerifiedJwtScan() *Scan

func (*Scan) WithServerSignatureScan added in v0.3.1

func (s *Scan) WithServerSignatureScan() *Scan

func (*Scan) WithWeakJwtSecretScan

func (s *Scan) WithWeakJwtSecretScan() *Scan

type ScanHandler

type ScanHandler func(o *request.Operation, ss auth.SecurityScheme) (*report.ScanReport, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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