iotdevfp

package
v1.2.8-sp4 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IoTDeviceRules         []*IotDevRule
	ApplicationDeviceRules []*IotDevRule
)
View Source
var FaviconFps []*IcoHashFingerprint

Functions

This section is empty.

Types

type IcoHashFingerprint

type IcoHashFingerprint struct {
	DevClass    string
	DevModel    string
	DevVendor   string
	FaviconHash int64
	IsDevice    bool
}

type IoTDevMatchResult

type IoTDevMatchResult struct {
	VendorProduct string
	Version       string

	Rule *IotDevRule
}

func MatchAll

func MatchAll(banner []byte) []*IoTDevMatchResult

func (*IoTDevMatchResult) GetCPE

func (i *IoTDevMatchResult) GetCPE() string

type IotDevRule

type IotDevRule struct {
	// app
	AppClass         string
	AppVersion       string // regexp
	AppVersionRegexp *regexp.Regexp
	AppName          string // vendor + product

	// device
	DeviceClass       string
	DeviceModel       string
	DeviceModelRegexp *regexp.Regexp
	DeviceVendor      string

	//
	Flag       string // regxp
	FlagRegexp *regexp.Regexp
	IsDevice   bool

	Depends []string
	Implies map[string]string
}

func (*IotDevRule) Match

func (i *IotDevRule) Match(result []byte) (*IoTDevMatchResult, error)

Jump to

Keyboard shortcuts

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