config

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: MIT Imports: 1 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 {
	// Target settings
	URL         string `mapstructure:"url"`
	GRPCPort    uint16 `mapstructure:"grpcPort"`
	GraphQLURL  string `mapstructure:"graphqlURL"`
	OpenAPIFile string `mapstructure:"openapiFile"`

	// Test cases settings
	TestCase      string `mapstructure:"testCase"`
	TestCasesPath string `mapstructure:"testCasesPath"`
	TestSet       string `mapstructure:"testSet"`

	// HTTP client settings
	HTTPClient     string `mapstructure:"httpClient"`
	TLSVerify      bool   `mapstructure:"tlsVerify"`
	Proxy          string `mapstructure:"proxy"`
	AddHeader      string `mapstructure:"addHeader"`
	AddDebugHeader bool   `mapstructure:"addDebugHeader"`

	// GoHTTP client only settings
	MaxIdleConns    int  `mapstructure:"maxIdleConns"`
	MaxRedirects    int  `mapstructure:"maxRedirects"`
	IdleConnTimeout int  `mapstructure:"idleConnTimeout"`
	FollowCookies   bool `mapstructure:"followCookies"`
	RenewSession    bool `mapstructure:"renewSession"`

	// Performance settings
	Workers     int `mapstructure:"workers"`
	RandomDelay int `mapstructure:"randomDelay"`
	SendDelay   int `mapstructure:"sendDelay"`

	// Analysis settings
	SkipWAFBlockCheck     bool   `mapstructure:"skipWAFBlockCheck"`
	SkipWAFIdentification bool   `mapstructure:"skipWAFIdentification"`
	BlockStatusCodes      []int  `mapstructure:"blockStatusCodes"`
	PassStatusCodes       []int  `mapstructure:"passStatusCodes"`
	BlockRegex            string `mapstructure:"blockRegex"`
	PassRegex             string `mapstructure:"passRegex"`
	NonBlockedAsPassed    bool   `mapstructure:"nonBlockedAsPassed"`
	IgnoreUnresolved      bool   `mapstructure:"ignoreUnresolved"`
	BlockConnReset        bool   `mapstructure:"blockConnReset"`

	// Report settings
	WAFName         string `mapstructure:"wafName"`
	IncludePayloads bool   `mapstructure:"includePayloads"`
	ReportPath      string `mapstructure:"reportPath"`
	ReportName      string `mapstructure:"reportName"`
	ReportFormat    string `mapstructure:"reportFormat"`
	NoEmailReport   bool   `mapstructure:"noEmailReport"`
	Email           string `mapstructure:"email"`

	// config.yaml
	HTTPHeaders map[string]string `mapstructure:"headers"`

	// Other settings
	LogLevel string `mapstructure:"logLevel"`

	CheckBlockFunc detectors.Check

	Args []string
}

Jump to

Keyboard shortcuts

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