Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPMatcher ¶
type HTTPMatcher struct {
Status []int `yaml:"status" json:"status,omitempty"`
Body TextMatcher `yaml:"body" json:"body,omitempty"`
Title TextMatcher `yaml:"title" json:"title,omitempty"`
Headers []HeaderMatcher `yaml:"headers" json:"headers,omitempty"`
}
func (HTTPMatcher) Empty ¶
func (m HTTPMatcher) Empty() bool
func (HTTPMatcher) Match ¶
func (m HTTPMatcher) Match(responses []HTTPObservation) []Evidence
type HTTPObservation ¶
type HeaderMatcher ¶
type HeaderMatcher struct {
Name string `yaml:"name" json:"name"`
Contains []string `yaml:"contains" json:"contains,omitempty"`
Equals []string `yaml:"equals" json:"equals,omitempty"`
Prefix []string `yaml:"prefix" json:"prefix,omitempty"`
Suffix []string `yaml:"suffix" json:"suffix,omitempty"`
Regex []string `yaml:"regex" json:"regex,omitempty"`
}
type MatchResult ¶
type Matchers ¶
type Matchers struct {
CNAME TextMatcher `yaml:"cname" json:"cname,omitempty"`
NS TextMatcher `yaml:"ns" json:"ns,omitempty"`
Dangling bool `yaml:"dangling" json:"dangling,omitempty"`
HTTP HTTPMatcher `yaml:"http" json:"http,omitempty"`
}
type Signature ¶
type Signature struct {
ID string `yaml:"id" json:"id"`
Name string `yaml:"name" json:"name"`
Service string `yaml:"service" json:"service"`
Severity string `yaml:"severity" json:"severity"`
Confidence string `yaml:"confidence" json:"confidence"`
Description string `yaml:"description" json:"description"`
Takeover bool `yaml:"takeover" json:"takeover"`
Requires []string `yaml:"requires" json:"requires,omitempty"`
Matchers Matchers `yaml:"matchers" json:"matchers"`
References []string `yaml:"references" json:"references,omitempty"`
Source string `yaml:"-" json:"source,omitempty"`
}
func (Signature) Match ¶
func (s Signature) Match(surface Surface) MatchResult
type TextMatcher ¶
type TextMatcher struct {
Contains []string `yaml:"contains" json:"contains,omitempty"`
Equals []string `yaml:"equals" json:"equals,omitempty"`
Prefix []string `yaml:"prefix" json:"prefix,omitempty"`
Suffix []string `yaml:"suffix" json:"suffix,omitempty"`
Regex []string `yaml:"regex" json:"regex,omitempty"`
}
func (TextMatcher) Empty ¶
func (m TextMatcher) Empty() bool
Click to show internal directories.
Click to hide internal directories.