methodwebtest

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2025 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(b bool) *bool

Bool returns a pointer to the given bool value.

func Byte

func Byte(b byte) *byte

Byte returns a pointer to the given byte value.

func Complex64

func Complex64(c complex64) *complex64

Complex64 returns a pointer to the given complex64 value.

func Complex128

func Complex128(c complex128) *complex128

Complex128 returns a pointer to the given complex128 value.

func Float32

func Float32(f float32) *float32

Float32 returns a pointer to the given float32 value.

func Float64

func Float64(f float64) *float64

Float64 returns a pointer to the given float64 value.

func Int

func Int(i int) *int

Int returns a pointer to the given int value.

func Int8

func Int8(i int8) *int8

Int8 returns a pointer to the given int8 value.

func Int16

func Int16(i int16) *int16

Int16 returns a pointer to the given int16 value.

func Int32

func Int32(i int32) *int32

Int32 returns a pointer to the given int32 value.

func Int64

func Int64(i int64) *int64

Int64 returns a pointer to the given int64 value.

func MustParseDate

func MustParseDate(date string) time.Time

MustParseDate attempts to parse the given string as a date time.Time, and panics upon failure.

func MustParseDateTime

func MustParseDateTime(datetime string) time.Time

MustParseDateTime attempts to parse the given string as a datetime time.Time, and panics upon failure.

func Rune

func Rune(r rune) *rune

Rune returns a pointer to the given rune value.

func String

func String(s string) *string

String returns a pointer to the given string value.

func Time

func Time(t time.Time) *time.Time

Time returns a pointer to the given time.Time value.

func UUID

func UUID(u uuid.UUID) *uuid.UUID

UUID returns a pointer to the given uuid.UUID value.

func Uint

func Uint(u uint) *uint

Uint returns a pointer to the given uint value.

func Uint8

func Uint8(u uint8) *uint8

Uint8 returns a pointer to the given uint8 value.

func Uint16

func Uint16(u uint16) *uint16

Uint16 returns a pointer to the given uint16 value.

func Uint32

func Uint32(u uint32) *uint32

Uint32 returns a pointer to the given uint32 value.

func Uint64

func Uint64(u uint64) *uint64

Uint64 returns a pointer to the given uint64 value.

func Uintptr

func Uintptr(u uintptr) *uintptr

Uintptr returns a pointer to the given uintptr value.

Types

type AttemptInfo

type AttemptInfo struct {
	Request      *RequestInfo `json:"request,omitempty" url:"request,omitempty"`
	TimeSent     time.Time    `json:"timeSent" url:"timeSent"`
	TimeReceived *time.Time   `json:"timeReceived,omitempty" url:"timeReceived,omitempty"`
	Finding      *bool        `json:"finding,omitempty" url:"finding,omitempty"`
	// contains filtered or unexported fields
}

func (*AttemptInfo) GetExtraProperties

func (a *AttemptInfo) GetExtraProperties() map[string]interface{}

func (*AttemptInfo) GetFinding added in v0.0.17

func (a *AttemptInfo) GetFinding() *bool

func (*AttemptInfo) GetRequest added in v0.0.17

func (a *AttemptInfo) GetRequest() *RequestInfo

func (*AttemptInfo) GetTimeReceived added in v0.0.17

func (a *AttemptInfo) GetTimeReceived() *time.Time

func (*AttemptInfo) GetTimeSent added in v0.0.17

func (a *AttemptInfo) GetTimeSent() time.Time

func (*AttemptInfo) MarshalJSON

func (a *AttemptInfo) MarshalJSON() ([]byte, error)

func (*AttemptInfo) String

func (a *AttemptInfo) String() string

func (*AttemptInfo) UnmarshalJSON

func (a *AttemptInfo) UnmarshalJSON(data []byte) error

type BodyEvent added in v0.0.13

type BodyEvent string
const (
	BodyEventXmlrpcfunctionauth BodyEvent = "XMLRPCFUNCTIONAUTH"
)

func NewBodyEventFromString added in v0.0.13

func NewBodyEventFromString(s string) (BodyEvent, error)

func (BodyEvent) Ptr added in v0.0.13

func (b BodyEvent) Ptr() *BodyEvent

type BodyXmlRpcFunctionAuthConfig added in v0.0.13

type BodyXmlRpcFunctionAuthConfig struct {
	Targets []string `json:"targets,omitempty" url:"targets,omitempty"`
	Timeout int      `json:"timeout" url:"timeout"`
	Retries int      `json:"retries" url:"retries"`
	Sleep   int      `json:"sleep" url:"sleep"`
	// contains filtered or unexported fields
}

func (*BodyXmlRpcFunctionAuthConfig) GetExtraProperties added in v0.0.13

func (b *BodyXmlRpcFunctionAuthConfig) GetExtraProperties() map[string]interface{}

func (*BodyXmlRpcFunctionAuthConfig) GetRetries added in v0.0.17

func (b *BodyXmlRpcFunctionAuthConfig) GetRetries() int

func (*BodyXmlRpcFunctionAuthConfig) GetSleep added in v0.0.17

func (b *BodyXmlRpcFunctionAuthConfig) GetSleep() int

func (*BodyXmlRpcFunctionAuthConfig) GetTargets added in v0.0.17

func (b *BodyXmlRpcFunctionAuthConfig) GetTargets() []string

func (*BodyXmlRpcFunctionAuthConfig) GetTimeout added in v0.0.17

func (b *BodyXmlRpcFunctionAuthConfig) GetTimeout() int

func (*BodyXmlRpcFunctionAuthConfig) String added in v0.0.13

func (*BodyXmlRpcFunctionAuthConfig) UnmarshalJSON added in v0.0.13

func (b *BodyXmlRpcFunctionAuthConfig) UnmarshalJSON(data []byte) error

type EngineConfig

type EngineConfig struct {
	Type                               string
	InjectionEngineConfig              *InjectionEngineConfig
	HeaderMisconfigurationEngineConfig *HeaderMisconfigurationEngineConfig
	PathTraversalEngineConfig          *PathTraversalEngineConfig
}

func NewEngineConfigFromHeaderMisconfigurationEngineConfig

func NewEngineConfigFromHeaderMisconfigurationEngineConfig(value *HeaderMisconfigurationEngineConfig) *EngineConfig

func NewEngineConfigFromInjectionEngineConfig

func NewEngineConfigFromInjectionEngineConfig(value *InjectionEngineConfig) *EngineConfig

func NewEngineConfigFromPathTraversalEngineConfig

func NewEngineConfigFromPathTraversalEngineConfig(value *PathTraversalEngineConfig) *EngineConfig

func (*EngineConfig) Accept

func (e *EngineConfig) Accept(visitor EngineConfigVisitor) error

func (*EngineConfig) GetHeaderMisconfigurationEngineConfig added in v0.0.17

func (e *EngineConfig) GetHeaderMisconfigurationEngineConfig() *HeaderMisconfigurationEngineConfig

func (*EngineConfig) GetInjectionEngineConfig added in v0.0.17

func (e *EngineConfig) GetInjectionEngineConfig() *InjectionEngineConfig

func (*EngineConfig) GetPathTraversalEngineConfig added in v0.0.17

func (e *EngineConfig) GetPathTraversalEngineConfig() *PathTraversalEngineConfig

func (*EngineConfig) GetType added in v0.0.17

func (e *EngineConfig) GetType() string

func (EngineConfig) MarshalJSON

func (e EngineConfig) MarshalJSON() ([]byte, error)

func (*EngineConfig) UnmarshalJSON

func (e *EngineConfig) UnmarshalJSON(data []byte) error

type EngineConfigVisitor

type EngineConfigVisitor interface {
	VisitInjectionEngineConfig(*InjectionEngineConfig) error
	VisitHeaderMisconfigurationEngineConfig(*HeaderMisconfigurationEngineConfig) error
	VisitPathTraversalEngineConfig(*PathTraversalEngineConfig) error
}

type EventType

type EventType struct {
	Type        string
	HeaderEvent HeaderEvent
	PathEvent   PathEvent
	QueryEvent  QueryEvent
	MultiEvent  MultiEvent
	BodyEvent   BodyEvent
}

func NewEventTypeFromBodyEvent added in v0.0.13

func NewEventTypeFromBodyEvent(value BodyEvent) *EventType

func NewEventTypeFromHeaderEvent

func NewEventTypeFromHeaderEvent(value HeaderEvent) *EventType

func NewEventTypeFromMultiEvent

func NewEventTypeFromMultiEvent(value MultiEvent) *EventType

func NewEventTypeFromPathEvent

func NewEventTypeFromPathEvent(value PathEvent) *EventType

func NewEventTypeFromQueryEvent

func NewEventTypeFromQueryEvent(value QueryEvent) *EventType

func (*EventType) Accept

func (e *EventType) Accept(visitor EventTypeVisitor) error

func (*EventType) GetBodyEvent added in v0.0.17

func (e *EventType) GetBodyEvent() BodyEvent

func (*EventType) GetHeaderEvent added in v0.0.17

func (e *EventType) GetHeaderEvent() HeaderEvent

func (*EventType) GetMultiEvent added in v0.0.17

func (e *EventType) GetMultiEvent() MultiEvent

func (*EventType) GetPathEvent added in v0.0.17

func (e *EventType) GetPathEvent() PathEvent

func (*EventType) GetQueryEvent added in v0.0.17

func (e *EventType) GetQueryEvent() QueryEvent

func (*EventType) GetType added in v0.0.17

func (e *EventType) GetType() string

func (EventType) MarshalJSON

func (e EventType) MarshalJSON() ([]byte, error)

func (*EventType) UnmarshalJSON

func (e *EventType) UnmarshalJSON(data []byte) error

type EventTypeVisitor

type EventTypeVisitor interface {
	VisitHeaderEvent(HeaderEvent) error
	VisitPathEvent(PathEvent) error
	VisitQueryEvent(QueryEvent) error
	VisitMultiEvent(MultiEvent) error
	VisitBodyEvent(BodyEvent) error
}

type FileParam added in v0.0.17

type FileParam struct {
	io.Reader
	// contains filtered or unexported fields
}

FileParam is a file type suitable for multipart/form-data uploads.

func NewFileParam added in v0.0.17

func NewFileParam(
	reader io.Reader,
	filename string,
	contentType string,
	opts ...FileParamOption,
) *FileParam

NewFileParam returns a *FileParam type suitable for multipart/form-data uploads. All file upload endpoints accept a simple io.Reader, which is usually created by opening a file via os.Open.

However, some endpoints require additional metadata about the file such as a specific Content-Type or custom filename. FileParam makes it easier to create the correct type signature for these endpoints.

func (*FileParam) ContentType added in v0.0.17

func (f *FileParam) ContentType() string

func (*FileParam) Name added in v0.0.17

func (f *FileParam) Name() string

type FileParamOption added in v0.0.17

type FileParamOption interface {
	// contains filtered or unexported methods
}

FileParamOption adapts the behavior of the FileParam. No options are implemented yet, but this interface allows for future extensibility.

type HeaderBufferOverflowConfig

type HeaderBufferOverflowConfig struct {
	Targets  []string `json:"targets,omitempty" url:"targets,omitempty"`
	BodySize int      `json:"bodySize" url:"bodySize"`
	Timeout  int      `json:"timeout" url:"timeout"`
	Retries  int      `json:"retries" url:"retries"`
	Sleep    int      `json:"sleep" url:"sleep"`
	// contains filtered or unexported fields
}

func (*HeaderBufferOverflowConfig) GetBodySize added in v0.0.17

func (h *HeaderBufferOverflowConfig) GetBodySize() int

func (*HeaderBufferOverflowConfig) GetExtraProperties

func (h *HeaderBufferOverflowConfig) GetExtraProperties() map[string]interface{}

func (*HeaderBufferOverflowConfig) GetRetries added in v0.0.17

func (h *HeaderBufferOverflowConfig) GetRetries() int

func (*HeaderBufferOverflowConfig) GetSleep added in v0.0.17

func (h *HeaderBufferOverflowConfig) GetSleep() int

func (*HeaderBufferOverflowConfig) GetTargets added in v0.0.17

func (h *HeaderBufferOverflowConfig) GetTargets() []string

func (*HeaderBufferOverflowConfig) GetTimeout added in v0.0.17

func (h *HeaderBufferOverflowConfig) GetTimeout() int

func (*HeaderBufferOverflowConfig) String

func (h *HeaderBufferOverflowConfig) String() string

func (*HeaderBufferOverflowConfig) UnmarshalJSON

func (h *HeaderBufferOverflowConfig) UnmarshalJSON(data []byte) error

type HeaderEvent

type HeaderEvent string
const (
	HeaderEventCors             HeaderEvent = "CORS"
	HeaderEventEscape           HeaderEvent = "ESCAPE"
	HeaderEventHttp             HeaderEvent = "HTTP"
	HeaderEventSensitiveexposed HeaderEvent = "SENSITIVEEXPOSED"
	HeaderEventServeroverload   HeaderEvent = "SERVEROVERLOAD"
	HeaderEventUseragent        HeaderEvent = "USERAGENT"
	HeaderEventOptionsbleed     HeaderEvent = "OPTIONSBLEED"
)

func NewHeaderEventFromString

func NewHeaderEventFromString(s string) (HeaderEvent, error)

func (HeaderEvent) Ptr

func (h HeaderEvent) Ptr() *HeaderEvent

type HeaderMisconfigurationConfig

type HeaderMisconfigurationConfig struct {
	Targets     []string    `json:"targets,omitempty" url:"targets,omitempty"`
	HeaderEvent HeaderEvent `json:"headerEvent" url:"headerEvent"`
	Timeout     int         `json:"timeout" url:"timeout"`
	Retries     int         `json:"retries" url:"retries"`
	Sleep       int         `json:"sleep" url:"sleep"`
	// contains filtered or unexported fields
}

func (*HeaderMisconfigurationConfig) GetExtraProperties

func (h *HeaderMisconfigurationConfig) GetExtraProperties() map[string]interface{}

func (*HeaderMisconfigurationConfig) GetHeaderEvent added in v0.0.17

func (h *HeaderMisconfigurationConfig) GetHeaderEvent() HeaderEvent

func (*HeaderMisconfigurationConfig) GetRetries added in v0.0.17

func (h *HeaderMisconfigurationConfig) GetRetries() int

func (*HeaderMisconfigurationConfig) GetSleep added in v0.0.17

func (h *HeaderMisconfigurationConfig) GetSleep() int

func (*HeaderMisconfigurationConfig) GetTargets added in v0.0.17

func (h *HeaderMisconfigurationConfig) GetTargets() []string

func (*HeaderMisconfigurationConfig) GetTimeout added in v0.0.17

func (h *HeaderMisconfigurationConfig) GetTimeout() int

func (*HeaderMisconfigurationConfig) String

func (*HeaderMisconfigurationConfig) UnmarshalJSON

func (h *HeaderMisconfigurationConfig) UnmarshalJSON(data []byte) error

type HeaderMisconfigurationEngineConfig

type HeaderMisconfigurationEngineConfig struct {
	Targets         []string              `json:"targets,omitempty" url:"targets,omitempty"`
	Method          HttpMethod            `json:"method" url:"method"`
	Payloads        [][]map[string]string `json:"payloads,omitempty" url:"payloads,omitempty"`
	EventType       *EventType            `json:"eventType,omitempty" url:"eventType,omitempty"`
	FollowRedirects bool                  `json:"followRedirects" url:"followRedirects"`
	Timeout         int                   `json:"timeout" url:"timeout"`
	Retries         int                   `json:"retries" url:"retries"`
	Sleep           int                   `json:"sleep" url:"sleep"`
	// contains filtered or unexported fields
}

func (*HeaderMisconfigurationEngineConfig) GetEventType added in v0.0.17

func (h *HeaderMisconfigurationEngineConfig) GetEventType() *EventType

func (*HeaderMisconfigurationEngineConfig) GetExtraProperties

func (h *HeaderMisconfigurationEngineConfig) GetExtraProperties() map[string]interface{}

func (*HeaderMisconfigurationEngineConfig) GetFollowRedirects added in v0.0.17

func (h *HeaderMisconfigurationEngineConfig) GetFollowRedirects() bool

func (*HeaderMisconfigurationEngineConfig) GetMethod added in v0.0.17

func (*HeaderMisconfigurationEngineConfig) GetPayloads added in v0.0.17

func (h *HeaderMisconfigurationEngineConfig) GetPayloads() [][]map[string]string

func (*HeaderMisconfigurationEngineConfig) GetRetries added in v0.0.17

func (h *HeaderMisconfigurationEngineConfig) GetRetries() int

func (*HeaderMisconfigurationEngineConfig) GetSleep added in v0.0.17

func (*HeaderMisconfigurationEngineConfig) GetTargets added in v0.0.17

func (h *HeaderMisconfigurationEngineConfig) GetTargets() []string

func (*HeaderMisconfigurationEngineConfig) GetTimeout added in v0.0.17

func (h *HeaderMisconfigurationEngineConfig) GetTimeout() int

func (*HeaderMisconfigurationEngineConfig) String

func (*HeaderMisconfigurationEngineConfig) UnmarshalJSON

func (h *HeaderMisconfigurationEngineConfig) UnmarshalJSON(data []byte) error

type HeaderOptionsBleedConfig added in v0.0.14

type HeaderOptionsBleedConfig struct {
	Targets []string `json:"targets,omitempty" url:"targets,omitempty"`
	Timeout int      `json:"timeout" url:"timeout"`
	Retries int      `json:"retries" url:"retries"`
	Sleep   int      `json:"sleep" url:"sleep"`
	// contains filtered or unexported fields
}

func (*HeaderOptionsBleedConfig) GetExtraProperties added in v0.0.14

func (h *HeaderOptionsBleedConfig) GetExtraProperties() map[string]interface{}

func (*HeaderOptionsBleedConfig) GetRetries added in v0.0.17

func (h *HeaderOptionsBleedConfig) GetRetries() int

func (*HeaderOptionsBleedConfig) GetSleep added in v0.0.17

func (h *HeaderOptionsBleedConfig) GetSleep() int

func (*HeaderOptionsBleedConfig) GetTargets added in v0.0.17

func (h *HeaderOptionsBleedConfig) GetTargets() []string

func (*HeaderOptionsBleedConfig) GetTimeout added in v0.0.17

func (h *HeaderOptionsBleedConfig) GetTimeout() int

func (*HeaderOptionsBleedConfig) String added in v0.0.14

func (h *HeaderOptionsBleedConfig) String() string

func (*HeaderOptionsBleedConfig) UnmarshalJSON added in v0.0.14

func (h *HeaderOptionsBleedConfig) UnmarshalJSON(data []byte) error

type HeaderServerOverloadConfig

type HeaderServerOverloadConfig struct {
	Targets     []string `json:"targets,omitempty" url:"targets,omitempty"`
	HeaderNames []string `json:"headerNames,omitempty" url:"headerNames,omitempty"`
	PayloadSize int      `json:"payloadSize" url:"payloadSize"`
	Timeout     int      `json:"timeout" url:"timeout"`
	Retries     int      `json:"retries" url:"retries"`
	Sleep       int      `json:"sleep" url:"sleep"`
	// contains filtered or unexported fields
}

func (*HeaderServerOverloadConfig) GetExtraProperties

func (h *HeaderServerOverloadConfig) GetExtraProperties() map[string]interface{}

func (*HeaderServerOverloadConfig) GetHeaderNames added in v0.0.17

func (h *HeaderServerOverloadConfig) GetHeaderNames() []string

func (*HeaderServerOverloadConfig) GetPayloadSize added in v0.0.17

func (h *HeaderServerOverloadConfig) GetPayloadSize() int

func (*HeaderServerOverloadConfig) GetRetries added in v0.0.17

func (h *HeaderServerOverloadConfig) GetRetries() int

func (*HeaderServerOverloadConfig) GetSleep added in v0.0.17

func (h *HeaderServerOverloadConfig) GetSleep() int

func (*HeaderServerOverloadConfig) GetTargets added in v0.0.17

func (h *HeaderServerOverloadConfig) GetTargets() []string

func (*HeaderServerOverloadConfig) GetTimeout added in v0.0.17

func (h *HeaderServerOverloadConfig) GetTimeout() int

func (*HeaderServerOverloadConfig) String

func (h *HeaderServerOverloadConfig) String() string

func (*HeaderServerOverloadConfig) UnmarshalJSON

func (h *HeaderServerOverloadConfig) UnmarshalJSON(data []byte) error

type HeaderUserAgentConfig

type HeaderUserAgentConfig struct {
	Targets     []string `json:"targets,omitempty" url:"targets,omitempty"`
	AgentHeader string   `json:"agentHeader" url:"agentHeader"`
	Timeout     int      `json:"timeout" url:"timeout"`
	Retries     int      `json:"retries" url:"retries"`
	Sleep       int      `json:"sleep" url:"sleep"`
	// contains filtered or unexported fields
}

func (*HeaderUserAgentConfig) GetAgentHeader added in v0.0.17

func (h *HeaderUserAgentConfig) GetAgentHeader() string

func (*HeaderUserAgentConfig) GetExtraProperties

func (h *HeaderUserAgentConfig) GetExtraProperties() map[string]interface{}

func (*HeaderUserAgentConfig) GetRetries added in v0.0.17

func (h *HeaderUserAgentConfig) GetRetries() int

func (*HeaderUserAgentConfig) GetSleep added in v0.0.17

func (h *HeaderUserAgentConfig) GetSleep() int

func (*HeaderUserAgentConfig) GetTargets added in v0.0.17

func (h *HeaderUserAgentConfig) GetTargets() []string

func (*HeaderUserAgentConfig) GetTimeout added in v0.0.17

func (h *HeaderUserAgentConfig) GetTimeout() int

func (*HeaderUserAgentConfig) String

func (h *HeaderUserAgentConfig) String() string

func (*HeaderUserAgentConfig) UnmarshalJSON

func (h *HeaderUserAgentConfig) UnmarshalJSON(data []byte) error

type HttpMethod

type HttpMethod string
const (
	HttpMethodGet     HttpMethod = "GET"
	HttpMethodPost    HttpMethod = "POST"
	HttpMethodPut     HttpMethod = "PUT"
	HttpMethodDelete  HttpMethod = "DELETE"
	HttpMethodPatch   HttpMethod = "PATCH"
	HttpMethodOptions HttpMethod = "OPTIONS"
	HttpMethodHead    HttpMethod = "HEAD"
	HttpMethodConnect HttpMethod = "CONNECT"
	HttpMethodTrace   HttpMethod = "TRACE"
)

func NewHttpMethodFromString

func NewHttpMethodFromString(s string) (HttpMethod, error)

func (HttpMethod) Ptr

func (h HttpMethod) Ptr() *HttpMethod

type InjectionEngineConfig

type InjectionEngineConfig struct {
	Targets           []string            `json:"targets,omitempty" url:"targets,omitempty"`
	Method            HttpMethod          `json:"method" url:"method"`
	Paths             []string            `json:"paths,omitempty" url:"paths,omitempty"`
	BaselinePayload   map[string]string   `json:"baselinePayload,omitempty" url:"baselinePayload,omitempty"`
	InjectedPayloads  []map[string]string `json:"injectedPayloads,omitempty" url:"injectedPayloads,omitempty"`
	InjectionLocation InjectionLocation   `json:"injectionLocation" url:"injectionLocation"`
	EventType         *EventType          `json:"eventType,omitempty" url:"eventType,omitempty"`
	FollowRedirects   bool                `json:"followRedirects" url:"followRedirects"`
	Timeout           int                 `json:"timeout" url:"timeout"`
	Retries           int                 `json:"retries" url:"retries"`
	Sleep             int                 `json:"sleep" url:"sleep"`
	// contains filtered or unexported fields
}

func (*InjectionEngineConfig) GetBaselinePayload added in v0.0.17

func (i *InjectionEngineConfig) GetBaselinePayload() map[string]string

func (*InjectionEngineConfig) GetEventType added in v0.0.17

func (i *InjectionEngineConfig) GetEventType() *EventType

func (*InjectionEngineConfig) GetExtraProperties

func (i *InjectionEngineConfig) GetExtraProperties() map[string]interface{}

func (*InjectionEngineConfig) GetFollowRedirects added in v0.0.17

func (i *InjectionEngineConfig) GetFollowRedirects() bool

func (*InjectionEngineConfig) GetInjectedPayloads added in v0.0.17

func (i *InjectionEngineConfig) GetInjectedPayloads() []map[string]string

func (*InjectionEngineConfig) GetInjectionLocation added in v0.0.17

func (i *InjectionEngineConfig) GetInjectionLocation() InjectionLocation

func (*InjectionEngineConfig) GetMethod added in v0.0.17

func (i *InjectionEngineConfig) GetMethod() HttpMethod

func (*InjectionEngineConfig) GetPaths added in v0.0.17

func (i *InjectionEngineConfig) GetPaths() []string

func (*InjectionEngineConfig) GetRetries added in v0.0.17

func (i *InjectionEngineConfig) GetRetries() int

func (*InjectionEngineConfig) GetSleep added in v0.0.17

func (i *InjectionEngineConfig) GetSleep() int

func (*InjectionEngineConfig) GetTargets added in v0.0.17

func (i *InjectionEngineConfig) GetTargets() []string

func (*InjectionEngineConfig) GetTimeout added in v0.0.17

func (i *InjectionEngineConfig) GetTimeout() int

func (*InjectionEngineConfig) String

func (i *InjectionEngineConfig) String() string

func (*InjectionEngineConfig) UnmarshalJSON

func (i *InjectionEngineConfig) UnmarshalJSON(data []byte) error

type InjectionLocation

type InjectionLocation string
const (
	InjectionLocationHeader    InjectionLocation = "HEADER"
	InjectionLocationPath      InjectionLocation = "PATH"
	InjectionLocationQuery     InjectionLocation = "QUERY"
	InjectionLocationBody      InjectionLocation = "BODY"
	InjectionLocationForm      InjectionLocation = "FORM"
	InjectionLocationMultipart InjectionLocation = "MULTIPART"
)

func NewInjectionLocationFromString

func NewInjectionLocationFromString(s string) (InjectionLocation, error)

func (InjectionLocation) Ptr

type MultiEvent

type MultiEvent string
const (
	MultiEventCommandecho      MultiEvent = "COMMANDECHO"
	MultiEventCommandtimedelay MultiEvent = "COMMANDTIMEDELAY"
	MultiEventSqliboolean      MultiEvent = "SQLIBOOLEAN"
	MultiEventSqliescape       MultiEvent = "SQLIESCAPE"
	MultiEventSqlitimedelay    MultiEvent = "SQLITIMEDELAY"
	MultiEventXssalert         MultiEvent = "XSSALERT"
)

func NewMultiEventFromString

func NewMultiEventFromString(s string) (MultiEvent, error)

func (MultiEvent) Ptr

func (m MultiEvent) Ptr() *MultiEvent

type MultiInjectionConfig

type MultiInjectionConfig struct {
	Targets           []string          `json:"targets,omitempty" url:"targets,omitempty"`
	Method            HttpMethod        `json:"method" url:"method"`
	VariableData      map[string]string `json:"variableData,omitempty" url:"variableData,omitempty"`
	InjectionLocation InjectionLocation `json:"injectionLocation" url:"injectionLocation"`
	EventType         MultiEvent        `json:"eventType" url:"eventType"`
	Timeout           int               `json:"timeout" url:"timeout"`
	Retries           int               `json:"retries" url:"retries"`
	Sleep             int               `json:"sleep" url:"sleep"`
	// contains filtered or unexported fields
}

func (*MultiInjectionConfig) GetEventType added in v0.0.17

func (m *MultiInjectionConfig) GetEventType() MultiEvent

func (*MultiInjectionConfig) GetExtraProperties

func (m *MultiInjectionConfig) GetExtraProperties() map[string]interface{}

func (*MultiInjectionConfig) GetInjectionLocation added in v0.0.17

func (m *MultiInjectionConfig) GetInjectionLocation() InjectionLocation

func (*MultiInjectionConfig) GetMethod added in v0.0.17

func (m *MultiInjectionConfig) GetMethod() HttpMethod

func (*MultiInjectionConfig) GetRetries added in v0.0.17

func (m *MultiInjectionConfig) GetRetries() int

func (*MultiInjectionConfig) GetSleep added in v0.0.17

func (m *MultiInjectionConfig) GetSleep() int

func (*MultiInjectionConfig) GetTargets added in v0.0.17

func (m *MultiInjectionConfig) GetTargets() []string

func (*MultiInjectionConfig) GetTimeout added in v0.0.17

func (m *MultiInjectionConfig) GetTimeout() int

func (*MultiInjectionConfig) GetVariableData added in v0.0.17

func (m *MultiInjectionConfig) GetVariableData() map[string]string

func (*MultiInjectionConfig) String

func (m *MultiInjectionConfig) String() string

func (*MultiInjectionConfig) UnmarshalJSON

func (m *MultiInjectionConfig) UnmarshalJSON(data []byte) error

type PathCrlfConfig

type PathCrlfConfig struct {
	Targets     []string `json:"targets,omitempty" url:"targets,omitempty"`
	HeaderName  string   `json:"headerName" url:"headerName"`
	HeaderValue string   `json:"headerValue" url:"headerValue"`
	Timeout     int      `json:"timeout" url:"timeout"`
	Retries     int      `json:"retries" url:"retries"`
	Sleep       int      `json:"sleep" url:"sleep"`
	// contains filtered or unexported fields
}

func (*PathCrlfConfig) GetExtraProperties

func (p *PathCrlfConfig) GetExtraProperties() map[string]interface{}

func (*PathCrlfConfig) GetHeaderName added in v0.0.17

func (p *PathCrlfConfig) GetHeaderName() string

func (*PathCrlfConfig) GetHeaderValue added in v0.0.17

func (p *PathCrlfConfig) GetHeaderValue() string

func (*PathCrlfConfig) GetRetries added in v0.0.17

func (p *PathCrlfConfig) GetRetries() int

func (*PathCrlfConfig) GetSleep added in v0.0.17

func (p *PathCrlfConfig) GetSleep() int

func (*PathCrlfConfig) GetTargets added in v0.0.17

func (p *PathCrlfConfig) GetTargets() []string

func (*PathCrlfConfig) GetTimeout added in v0.0.17

func (p *PathCrlfConfig) GetTimeout() int

func (*PathCrlfConfig) String

func (p *PathCrlfConfig) String() string

func (*PathCrlfConfig) UnmarshalJSON

func (p *PathCrlfConfig) UnmarshalJSON(data []byte) error

type PathEvent

type PathEvent string
const (
	PathEventTraversal PathEvent = "TRAVERSAL"
	PathEventCrlf      PathEvent = "CRLF"
)

func NewPathEventFromString

func NewPathEventFromString(s string) (PathEvent, error)

func (PathEvent) Ptr

func (p PathEvent) Ptr() *PathEvent

type PathModFileConfig

type PathModFileConfig struct {
	Targets []string `json:"targets,omitempty" url:"targets,omitempty"`
	Timeout int      `json:"timeout" url:"timeout"`
	Retries int      `json:"retries" url:"retries"`
	Sleep   int      `json:"sleep" url:"sleep"`
	// contains filtered or unexported fields
}

func (*PathModFileConfig) GetExtraProperties

func (p *PathModFileConfig) GetExtraProperties() map[string]interface{}

func (*PathModFileConfig) GetRetries added in v0.0.17

func (p *PathModFileConfig) GetRetries() int

func (*PathModFileConfig) GetSleep added in v0.0.17

func (p *PathModFileConfig) GetSleep() int

func (*PathModFileConfig) GetTargets added in v0.0.17

func (p *PathModFileConfig) GetTargets() []string

func (*PathModFileConfig) GetTimeout added in v0.0.17

func (p *PathModFileConfig) GetTimeout() int

func (*PathModFileConfig) String

func (p *PathModFileConfig) String() string

func (*PathModFileConfig) UnmarshalJSON

func (p *PathModFileConfig) UnmarshalJSON(data []byte) error

type PathTraversalConfig

type PathTraversalConfig struct {
	Targets           []string `json:"targets,omitempty" url:"targets,omitempty"`
	Paths             []string `json:"paths,omitempty" url:"paths,omitempty"`
	PathLists         []string `json:"pathLists,omitempty" url:"pathLists,omitempty"`
	QueryParam        *string  `json:"queryParam,omitempty" url:"queryParam,omitempty"`
	ResponseCodes     string   `json:"responseCodes" url:"responseCodes"`
	IgnoreBaseContent bool     `json:"ignoreBaseContent" url:"ignoreBaseContent"`
	Timeout           int      `json:"timeout" url:"timeout"`
	Retries           int      `json:"retries" url:"retries"`
	Sleep             int      `json:"sleep" url:"sleep"`
	SuccessfulOnly    bool     `json:"successfulOnly" url:"successfulOnly"`
	Threshold         float64  `json:"threshold" url:"threshold"`
	MaxRunTime        *int     `json:"maxRunTime,omitempty" url:"maxRunTime,omitempty"`
	// contains filtered or unexported fields
}

func (*PathTraversalConfig) GetExtraProperties

func (p *PathTraversalConfig) GetExtraProperties() map[string]interface{}

func (*PathTraversalConfig) GetIgnoreBaseContent added in v0.0.17

func (p *PathTraversalConfig) GetIgnoreBaseContent() bool

func (*PathTraversalConfig) GetMaxRunTime added in v0.0.17

func (p *PathTraversalConfig) GetMaxRunTime() *int

func (*PathTraversalConfig) GetPathLists added in v0.0.17

func (p *PathTraversalConfig) GetPathLists() []string

func (*PathTraversalConfig) GetPaths added in v0.0.17

func (p *PathTraversalConfig) GetPaths() []string

func (*PathTraversalConfig) GetQueryParam added in v0.0.17

func (p *PathTraversalConfig) GetQueryParam() *string

func (*PathTraversalConfig) GetResponseCodes added in v0.0.17

func (p *PathTraversalConfig) GetResponseCodes() string

func (*PathTraversalConfig) GetRetries added in v0.0.17

func (p *PathTraversalConfig) GetRetries() int

func (*PathTraversalConfig) GetSleep added in v0.0.17

func (p *PathTraversalConfig) GetSleep() int

func (*PathTraversalConfig) GetSuccessfulOnly added in v0.0.17

func (p *PathTraversalConfig) GetSuccessfulOnly() bool

func (*PathTraversalConfig) GetTargets added in v0.0.17

func (p *PathTraversalConfig) GetTargets() []string

func (*PathTraversalConfig) GetThreshold added in v0.0.17

func (p *PathTraversalConfig) GetThreshold() float64

func (*PathTraversalConfig) GetTimeout added in v0.0.17

func (p *PathTraversalConfig) GetTimeout() int

func (*PathTraversalConfig) String

func (p *PathTraversalConfig) String() string

func (*PathTraversalConfig) UnmarshalJSON

func (p *PathTraversalConfig) UnmarshalJSON(data []byte) error

type PathTraversalEngineConfig

type PathTraversalEngineConfig struct {
	Targets           []string `json:"targets,omitempty" url:"targets,omitempty"`
	Paths             []string `json:"paths,omitempty" url:"paths,omitempty"`
	PathFiles         []string `json:"pathFiles,omitempty" url:"pathFiles,omitempty"`
	QueryParam        *string  `json:"queryParam,omitempty" url:"queryParam,omitempty"`
	ResponseCodes     string   `json:"responseCodes" url:"responseCodes"`
	IgnoreBaseContent bool     `json:"ignoreBaseContent" url:"ignoreBaseContent"`
	Timeout           int      `json:"timeout" url:"timeout"`
	Retries           int      `json:"retries" url:"retries"`
	Sleep             int      `json:"sleep" url:"sleep"`
	SuccessfulOnly    bool     `json:"successfulOnly" url:"successfulOnly"`
	Threshold         *float64 `json:"threshold,omitempty" url:"threshold,omitempty"`
	MaxRunTime        *int     `json:"maxRunTime,omitempty" url:"maxRunTime,omitempty"`
	// contains filtered or unexported fields
}

func (*PathTraversalEngineConfig) GetExtraProperties

func (p *PathTraversalEngineConfig) GetExtraProperties() map[string]interface{}

func (*PathTraversalEngineConfig) GetIgnoreBaseContent added in v0.0.17

func (p *PathTraversalEngineConfig) GetIgnoreBaseContent() bool

func (*PathTraversalEngineConfig) GetMaxRunTime added in v0.0.17

func (p *PathTraversalEngineConfig) GetMaxRunTime() *int

func (*PathTraversalEngineConfig) GetPathFiles added in v0.0.17

func (p *PathTraversalEngineConfig) GetPathFiles() []string

func (*PathTraversalEngineConfig) GetPaths added in v0.0.17

func (p *PathTraversalEngineConfig) GetPaths() []string

func (*PathTraversalEngineConfig) GetQueryParam added in v0.0.17

func (p *PathTraversalEngineConfig) GetQueryParam() *string

func (*PathTraversalEngineConfig) GetResponseCodes added in v0.0.17

func (p *PathTraversalEngineConfig) GetResponseCodes() string

func (*PathTraversalEngineConfig) GetRetries added in v0.0.17

func (p *PathTraversalEngineConfig) GetRetries() int

func (*PathTraversalEngineConfig) GetSleep added in v0.0.17

func (p *PathTraversalEngineConfig) GetSleep() int

func (*PathTraversalEngineConfig) GetSuccessfulOnly added in v0.0.17

func (p *PathTraversalEngineConfig) GetSuccessfulOnly() bool

func (*PathTraversalEngineConfig) GetTargets added in v0.0.17

func (p *PathTraversalEngineConfig) GetTargets() []string

func (*PathTraversalEngineConfig) GetThreshold added in v0.0.17

func (p *PathTraversalEngineConfig) GetThreshold() *float64

func (*PathTraversalEngineConfig) GetTimeout added in v0.0.17

func (p *PathTraversalEngineConfig) GetTimeout() int

func (*PathTraversalEngineConfig) String

func (p *PathTraversalEngineConfig) String() string

func (*PathTraversalEngineConfig) UnmarshalJSON

func (p *PathTraversalEngineConfig) UnmarshalJSON(data []byte) error

type QueryEvent

type QueryEvent string
const (
	QueryEventRedirect QueryEvent = "REDIRECT"
)

func NewQueryEventFromString

func NewQueryEventFromString(s string) (QueryEvent, error)

func (QueryEvent) Ptr

func (q QueryEvent) Ptr() *QueryEvent

type QueryReverseProxyConfig

type QueryReverseProxyConfig struct {
	Targets         []string `json:"targets,omitempty" url:"targets,omitempty"`
	RedirectAddress string   `json:"redirectAddress" url:"redirectAddress"`
	Timeout         int      `json:"timeout" url:"timeout"`
	Retries         int      `json:"retries" url:"retries"`
	Sleep           int      `json:"sleep" url:"sleep"`
	// contains filtered or unexported fields
}

func (*QueryReverseProxyConfig) GetExtraProperties

func (q *QueryReverseProxyConfig) GetExtraProperties() map[string]interface{}

func (*QueryReverseProxyConfig) GetRedirectAddress added in v0.0.17

func (q *QueryReverseProxyConfig) GetRedirectAddress() string

func (*QueryReverseProxyConfig) GetRetries added in v0.0.17

func (q *QueryReverseProxyConfig) GetRetries() int

func (*QueryReverseProxyConfig) GetSleep added in v0.0.17

func (q *QueryReverseProxyConfig) GetSleep() int

func (*QueryReverseProxyConfig) GetTargets added in v0.0.17

func (q *QueryReverseProxyConfig) GetTargets() []string

func (*QueryReverseProxyConfig) GetTimeout added in v0.0.17

func (q *QueryReverseProxyConfig) GetTimeout() int

func (*QueryReverseProxyConfig) String

func (q *QueryReverseProxyConfig) String() string

func (*QueryReverseProxyConfig) UnmarshalJSON

func (q *QueryReverseProxyConfig) UnmarshalJSON(data []byte) error

type Report

type Report struct {
	Targets []*TargetInfo `json:"targets,omitempty" url:"targets,omitempty"`
	Config  *EngineConfig `json:"config,omitempty" url:"config,omitempty"`
	Errors  []string      `json:"errors,omitempty" url:"errors,omitempty"`
	// contains filtered or unexported fields
}

func (*Report) GetConfig added in v0.0.17

func (r *Report) GetConfig() *EngineConfig

func (*Report) GetErrors added in v0.0.17

func (r *Report) GetErrors() []string

func (*Report) GetExtraProperties

func (r *Report) GetExtraProperties() map[string]interface{}

func (*Report) GetTargets added in v0.0.17

func (r *Report) GetTargets() []*TargetInfo

func (*Report) String

func (r *Report) String() string

func (*Report) UnmarshalJSON

func (r *Report) UnmarshalJSON(data []byte) error

type RequestInfo

type RequestInfo struct {
	BaseUrl             string            `json:"baseUrl" url:"baseUrl"`
	Path                string            `json:"path" url:"path"`
	Method              HttpMethod        `json:"method" url:"method"`
	PathParams          map[string]string `json:"pathParams,omitempty" url:"pathParams,omitempty"`
	QueryParams         map[string]string `json:"queryParams,omitempty" url:"queryParams,omitempty"`
	HeaderParams        map[string]string `json:"headerParams,omitempty" url:"headerParams,omitempty"`
	BodyParams          *string           `json:"bodyParams,omitempty" url:"bodyParams,omitempty"`
	FormParams          map[string]string `json:"formParams,omitempty" url:"formParams,omitempty"`
	MultipartParams     map[string]string `json:"multipartParams,omitempty" url:"multipartParams,omitempty"`
	EventType           []*EventType      `json:"eventType,omitempty" url:"eventType,omitempty"`
	StatusCode          *int              `json:"statusCode,omitempty" url:"statusCode,omitempty"`
	ResponseBody        *string           `json:"responseBody,omitempty" url:"responseBody,omitempty"`
	ResponseBodyEncoded *string           `json:"responseBodyEncoded,omitempty" url:"responseBodyEncoded,omitempty"`
	ResponseHeaders     map[string]string `json:"responseHeaders,omitempty" url:"responseHeaders,omitempty"`
	Errors              []string          `json:"errors,omitempty" url:"errors,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestInfo) GetBaseUrl added in v0.0.17

func (r *RequestInfo) GetBaseUrl() string

func (*RequestInfo) GetBodyParams added in v0.0.17

func (r *RequestInfo) GetBodyParams() *string

func (*RequestInfo) GetErrors added in v0.0.17

func (r *RequestInfo) GetErrors() []string

func (*RequestInfo) GetEventType added in v0.0.17

func (r *RequestInfo) GetEventType() []*EventType

func (*RequestInfo) GetExtraProperties

func (r *RequestInfo) GetExtraProperties() map[string]interface{}

func (*RequestInfo) GetFormParams added in v0.0.17

func (r *RequestInfo) GetFormParams() map[string]string

func (*RequestInfo) GetHeaderParams added in v0.0.17

func (r *RequestInfo) GetHeaderParams() map[string]string

func (*RequestInfo) GetMethod added in v0.0.17

func (r *RequestInfo) GetMethod() HttpMethod

func (*RequestInfo) GetMultipartParams added in v0.0.17

func (r *RequestInfo) GetMultipartParams() map[string]string

func (*RequestInfo) GetPath added in v0.0.17

func (r *RequestInfo) GetPath() string

func (*RequestInfo) GetPathParams added in v0.0.17

func (r *RequestInfo) GetPathParams() map[string]string

func (*RequestInfo) GetQueryParams added in v0.0.17

func (r *RequestInfo) GetQueryParams() map[string]string

func (*RequestInfo) GetResponseBody added in v0.0.17

func (r *RequestInfo) GetResponseBody() *string

func (*RequestInfo) GetResponseBodyEncoded added in v0.0.17

func (r *RequestInfo) GetResponseBodyEncoded() *string

func (*RequestInfo) GetResponseHeaders added in v0.0.17

func (r *RequestInfo) GetResponseHeaders() map[string]string

func (*RequestInfo) GetStatusCode added in v0.0.17

func (r *RequestInfo) GetStatusCode() *int

func (*RequestInfo) String

func (r *RequestInfo) String() string

func (*RequestInfo) UnmarshalJSON

func (r *RequestInfo) UnmarshalJSON(data []byte) error

type RequestParams

type RequestParams struct {
	PathParams      map[string]string `json:"pathParams,omitempty" url:"pathParams,omitempty"`
	QueryParams     map[string]string `json:"queryParams,omitempty" url:"queryParams,omitempty"`
	HeaderParams    map[string]string `json:"headerParams,omitempty" url:"headerParams,omitempty"`
	BodyParams      string            `json:"bodyParams" url:"bodyParams"`
	FormParams      map[string]string `json:"formParams,omitempty" url:"formParams,omitempty"`
	MultipartParams map[string]string `json:"multipartParams,omitempty" url:"multipartParams,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestParams) GetBodyParams added in v0.0.17

func (r *RequestParams) GetBodyParams() string

func (*RequestParams) GetExtraProperties

func (r *RequestParams) GetExtraProperties() map[string]interface{}

func (*RequestParams) GetFormParams added in v0.0.17

func (r *RequestParams) GetFormParams() map[string]string

func (*RequestParams) GetHeaderParams added in v0.0.17

func (r *RequestParams) GetHeaderParams() map[string]string

func (*RequestParams) GetMultipartParams added in v0.0.17

func (r *RequestParams) GetMultipartParams() map[string]string

func (*RequestParams) GetPathParams added in v0.0.17

func (r *RequestParams) GetPathParams() map[string]string

func (*RequestParams) GetQueryParams added in v0.0.17

func (r *RequestParams) GetQueryParams() map[string]string

func (*RequestParams) String

func (r *RequestParams) String() string

func (*RequestParams) UnmarshalJSON

func (r *RequestParams) UnmarshalJSON(data []byte) error

type TargetInfo

type TargetInfo struct {
	Target          string         `json:"target" url:"target"`
	StartTimestamp  time.Time      `json:"startTimestamp" url:"startTimestamp"`
	EndTimestamp    time.Time      `json:"endTimestamp" url:"endTimestamp"`
	RequestCount    int            `json:"requestCount" url:"requestCount"`
	BaselineAttempt *AttemptInfo   `json:"baselineAttempt,omitempty" url:"baselineAttempt,omitempty"`
	Attempts        []*AttemptInfo `json:"attempts,omitempty" url:"attempts,omitempty"`
	// contains filtered or unexported fields
}

func (*TargetInfo) GetAttempts added in v0.0.17

func (t *TargetInfo) GetAttempts() []*AttemptInfo

func (*TargetInfo) GetBaselineAttempt added in v0.0.17

func (t *TargetInfo) GetBaselineAttempt() *AttemptInfo

func (*TargetInfo) GetEndTimestamp added in v0.0.17

func (t *TargetInfo) GetEndTimestamp() time.Time

func (*TargetInfo) GetExtraProperties

func (t *TargetInfo) GetExtraProperties() map[string]interface{}

func (*TargetInfo) GetRequestCount added in v0.0.17

func (t *TargetInfo) GetRequestCount() int

func (*TargetInfo) GetStartTimestamp added in v0.0.17

func (t *TargetInfo) GetStartTimestamp() time.Time

func (*TargetInfo) GetTarget added in v0.0.17

func (t *TargetInfo) GetTarget() string

func (*TargetInfo) MarshalJSON

func (t *TargetInfo) MarshalJSON() ([]byte, error)

func (*TargetInfo) String

func (t *TargetInfo) String() string

func (*TargetInfo) UnmarshalJSON

func (t *TargetInfo) UnmarshalJSON(data []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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