Documentation
¶
Index ¶
- func Bool(b bool) *bool
- func Byte(b byte) *byte
- func Complex128(c complex128) *complex128
- func Complex64(c complex64) *complex64
- func Float32(f float32) *float32
- func Float64(f float64) *float64
- func Int(i int) *int
- func Int16(i int16) *int16
- func Int32(i int32) *int32
- func Int64(i int64) *int64
- func Int8(i int8) *int8
- func MustParseDate(date string) time.Time
- func MustParseDateTime(datetime string) time.Time
- func Rune(r rune) *rune
- func String(s string) *string
- func Time(t time.Time) *time.Time
- func UUID(u uuid.UUID) *uuid.UUID
- func Uint(u uint) *uint
- func Uint16(u uint16) *uint16
- func Uint32(u uint32) *uint32
- func Uint64(u uint64) *uint64
- func Uint8(u uint8) *uint8
- func Uintptr(u uintptr) *uintptr
- type AttemptInfo
- type EngineConfig
- func NewEngineConfigFromHeaderMisconfigurationEngineConfig(value *HeaderMisconfigurationEngineConfig) *EngineConfig
- func NewEngineConfigFromInjectionEngineConfig(value *InjectionEngineConfig) *EngineConfig
- func NewEngineConfigFromPathTraversalEngineConfig(value *PathTraversalEngineConfig) *EngineConfig
- type EngineConfigVisitor
- type EventType
- type EventTypeVisitor
- type HeaderBufferOverflowConfig
- type HeaderEvent
- type HeaderMisconfigurationConfig
- type HeaderMisconfigurationEngineConfig
- type HeaderServerOverloadConfig
- type HeaderUserAgentConfig
- type HttpMethod
- type InjectionEngineConfig
- type InjectionLocation
- type MultiEvent
- type MultiInjectionConfig
- type PathCrlfConfig
- type PathEvent
- type PathModFileConfig
- type PathTraversalConfig
- type PathTraversalEngineConfig
- type QueryEvent
- type QueryReverseProxyConfig
- type Report
- type RequestInfo
- type RequestParams
- type TargetInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Complex128 ¶
func Complex128(c complex128) *complex128
Complex128 returns a pointer to the given complex128 value.
func MustParseDate ¶
MustParseDate attempts to parse the given string as a date time.Time, and panics upon failure.
func MustParseDateTime ¶
MustParseDateTime attempts to parse the given string as a datetime time.Time, and panics upon failure.
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) 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 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) 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
}
func NewEventTypeFromHeaderEvent ¶
func NewEventTypeFromHeaderEvent(value HeaderEvent) *EventType
func NewEventTypeFromMultiEvent ¶
func NewEventTypeFromMultiEvent(value MultiEvent) *EventType
func NewEventTypeFromQueryEvent ¶
func NewEventTypeFromQueryEvent(value QueryEvent) *EventType
func (*EventType) Accept ¶
func (e *EventType) Accept(visitor EventTypeVisitor) error
func (EventType) MarshalJSON ¶
func (*EventType) UnmarshalJSON ¶
type EventTypeVisitor ¶
type EventTypeVisitor interface {
VisitHeaderEvent(HeaderEvent) error
VisitPathEvent(PathEvent) error
VisitQueryEvent(QueryEvent) error
VisitMultiEvent(MultiEvent) error
}
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) GetExtraProperties ¶
func (h *HeaderBufferOverflowConfig) GetExtraProperties() map[string]interface{}
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" )
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) String ¶
func (h *HeaderMisconfigurationConfig) String() 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"`
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) GetExtraProperties ¶
func (h *HeaderMisconfigurationEngineConfig) GetExtraProperties() map[string]interface{}
func (*HeaderMisconfigurationEngineConfig) String ¶
func (h *HeaderMisconfigurationEngineConfig) String() string
func (*HeaderMisconfigurationEngineConfig) UnmarshalJSON ¶
func (h *HeaderMisconfigurationEngineConfig) 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) 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) GetExtraProperties ¶
func (h *HeaderUserAgentConfig) GetExtraProperties() map[string]interface{}
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"`
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) GetExtraProperties ¶
func (i *InjectionEngineConfig) GetExtraProperties() map[string]interface{}
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 ¶
func (i InjectionLocation) Ptr() *InjectionLocation
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) GetExtraProperties ¶
func (m *MultiInjectionConfig) GetExtraProperties() map[string]interface{}
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) String ¶
func (p *PathCrlfConfig) String() string
func (*PathCrlfConfig) UnmarshalJSON ¶
func (p *PathCrlfConfig) UnmarshalJSON(data []byte) error
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) 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"`
// contains filtered or unexported fields
}
func (*PathTraversalConfig) GetExtraProperties ¶
func (p *PathTraversalConfig) GetExtraProperties() map[string]interface{}
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"`
// contains filtered or unexported fields
}
func (*PathTraversalEngineConfig) GetExtraProperties ¶
func (p *PathTraversalEngineConfig) GetExtraProperties() map[string]interface{}
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) 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) GetExtraProperties ¶
func (*Report) UnmarshalJSON ¶
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) GetExtraProperties ¶
func (r *RequestInfo) GetExtraProperties() map[string]interface{}
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) GetExtraProperties ¶
func (r *RequestParams) GetExtraProperties() map[string]interface{}
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) GetExtraProperties ¶
func (t *TargetInfo) GetExtraProperties() map[string]interface{}
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
Click to show internal directories.
Click to hide internal directories.