fingerprint

package
v1.3.5-alpha-0814 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRules

func GetRules() ([]*rule.GeneralRule, error)

func LoadAllDefaultRules

func LoadAllDefaultRules() (rules []*rule.FingerPrintRule)

func LoadCPEFromWebfingerrintCPE

func LoadCPEFromWebfingerrintCPE(o *webfingerprint.CPE) *rule.CPE

func SaveRules

func SaveRules(rules ...rule.GeneralRule) error

Types

type MatchFun

type MatchFun func(data []byte) (bool, error)

type Matcher

type Matcher struct {
	ErrorHandle func(error)
	Route       func(ctx context.Context, webPath string) ([]byte, error)
	// contains filtered or unexported fields
}

func NewMatcher

func NewMatcher() *Matcher

func (*Matcher) Match

func (m *Matcher) Match(ctx context.Context, data []byte, rules []*rule.FingerPrintRule) []*rule.CPE

func (*Matcher) MatchResource

func (m *Matcher) MatchResource(ctx context.Context, rules []*rule.FingerPrintRule, getter func(path string) (*rule.MatchResource, error)) []*rule.CPE

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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