Documentation
¶
Index ¶
- Constants
- func FingerMatcher(finger *Finger, content map[string]interface{}, level int, ...) (*parsers.Framework, *parsers.Vuln, bool)
- func RuleMatcher(rule *Rule, content map[string]interface{}, ishttp bool) (bool, bool, string)
- type Favicons
- type Finger
- func (finger *Finger) Compile(portHandler func([]string) []string) error
- func (finger *Finger) Match(content map[string]interface{}, level int, sender func([]byte) ([]byte, bool)) (*parsers.Framework, *parsers.Vuln, bool)
- func (finger *Finger) ToResult(hasFrame, hasVuln bool, res string, index int) (frame *parsers.Framework, vuln *parsers.Vuln)
- type FingerMapper
- type Fingers
- type Regexps
- type Rule
- type Rules
Constants ¶
View Source
const ( None = iota ACTIVE ICO NOTFOUND GUESS )
View Source
const ( INFO int = iota + 1 MEDIUM HIGH CRITICAL )
Variables ¶
This section is empty.
Functions ¶
func FingerMatcher ¶
Types ¶
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"`
Tags []string `yaml:"tag,omitempty" json:"tag,omitempty"`
IsActive bool `yaml:"-" json:"-"`
}
type FingerMapper ¶
type Fingers ¶
type Fingers []*Finger
func LoadFingers ¶
LoadFingers 加载指纹 迁移到fingers包从, 允许其他服务调用
func (Fingers) GroupByMod ¶ added in v2.11.4
func (Fingers) GroupByPort ¶
func (fs Fingers) GroupByPort() FingerMapper
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"`
Cert []string `yaml:"cert,omitempty" json:"cert,omitempty"`
CompliedRegexp []*regexp.Regexp `yaml:"-" json:"-"`
CompiledVulnRegexp []*regexp.Regexp `yaml:"-" json:"-"`
CompiledVersionRegexp []*regexp.Regexp `yaml:"-" json:"-"`
FingerName string `yaml:"-" json:"-"`
Header []string `yaml:"header,omitempty" json:"header,omitempty"`
Vuln []string `yaml:"vuln,omitempty" json:"vuln,omitempty"`
}
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:"-" json:"-"`
Info string `yaml:"info,omitempty" json:"info,omitempty"`
Vuln string `yaml:"vuln,omitempty" json:"vuln,omitempty"`
Level int `yaml:"level,omitempty" json:"level,omitempty"`
FingerName string `yaml:"-" json:"-"`
IsActive bool `yaml:"-" json:"-"`
}
Click to show internal directories.
Click to hide internal directories.