Documentation
¶
Index ¶
- Constants
- Variables
- func FingerMatcher(finger *Finger, content string, level int, sender func([]byte) (string, bool)) (*Framework, *Vuln, bool)
- func RuleMatcher(rule *Rule, content string, ishttp bool) (bool, bool, string)
- type Extracted
- type Extractors
- type Favicons
- type Finger
- type FingerMapper
- type Fingers
- type Framework
- type Regexps
- type Rule
- type Rules
- type Vuln
Constants ¶
View Source
const ( Info int = iota + 1 Medium High Critical )
Variables ¶
Functions ¶
func FingerMatcher ¶
Types ¶
type Extracted ¶ added in v2.8.6
func NewExtracted ¶ added in v2.8.6
type Extractors ¶ added in v2.8.6
func (Extractors) Extract ¶ added in v2.8.6
func (e Extractors) Extract(content string) (extracts []*Extracted)
type Finger ¶
type Finger struct {
Name string `yaml:"name" json:"name"`
Protocol string `yaml:"protocol,omitempty" json:"protocol"`
DefaultPort []string `yaml:"default_port,omitempty" json:"default_port,omitempty"`
Focus bool `yaml:"focus,omitempty" json:"focus,omitempty"`
Rules Rules `yaml:"rule,omitempty" json:"rule,omitempty"`
}
type FingerMapper ¶
func (FingerMapper) GetFingers ¶
func (fm FingerMapper) GetFingers(port string) []*Finger
type Fingers ¶
type Fingers []*Finger
func LoadFingers ¶
func (Fingers) GroupByPort ¶
func (fs Fingers) GroupByPort() FingerMapper
type Framework ¶
type Regexps ¶
type Regexps struct {
Body []string `yaml:"body,omitempty" json:"body,omitempty"`
MD5 []string `yaml:"md5,omitempty" json:"md5,omitempty"`
MMH3 []string `yaml:"mmh3,omitempty" json:"mmh3,omitempty"`
Regexp []string `yaml:"regexp,omitempty" json:"regexp,omitempty"`
Version []string `yaml:"version,omitempty" json:"version,omitempty"`
CompliedRegexp []*regexp.Regexp `yaml:"-" json:"-"`
CompiledVulnRegexp []*regexp.Regexp `yaml:"-" json:"-"`
CompiledVersionRegexp []*regexp.Regexp `yaml:"-" json:"-"`
Header []string `yaml:"header,omitempty" json:"header,omitempty"`
Vuln []string `yaml:"vuln,omitempty" json:"vuln,omitempty"`
}
func (*Regexps) RegexpCompile ¶
type Rule ¶
type Rule struct {
Version string `yaml:"version,omitempty" json:"version,omitempty"`
Favicon *Favicons `yaml:"favicon,omitempty" json:"favicon,omitempty"`
Regexps *Regexps `yaml:"regexps,omitempty" json:"regexps,omitempty"`
SendDataStr string `yaml:"send_data,omitempty" json:"send_data,omitempty"`
SendData senddata `yaml:"-,omitempty" json:"-,omitempty"`
Info string `yaml:"info,omitempty" json:"info,omitempty"`
Vuln string `yaml:"vuln,omitempty" json:"vuln,omitempty"`
Level int `yaml:"level,omitempty" json:"level,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.