Documentation ¶
Index ¶
- Constants
- func GetLocalNetworks() ([]string, error)
- func InitMultiReporter(config *ReporterConfig) error
- func MergeNodes(existing *stage.Node, new *stage.Node)
- func ServiceInfoToString(ports []*stage.ServiceInfo) string
- type ARPDetector
- type BaseDetector
- type CameraDetector
- type ConsoleReporter
- type DBReporter
- type DCERPCDetector
- type Detector
- type HTTPReporter
- type MultiReporter
- type OUIDatabase
- type PassiveDetector
- type PingDetector
- type Reporter
- type ReporterConfig
- type SNMPDetector
- type Scanner
- type ScannerConfig
- type ScannerType
- type ZScanDetector
Constants ¶
View Source
const ( // 海康威视SADP协议 HikPort = 37020 HikListenPort = 37020 HikMulticastIP = "239.255.255.250" // 大华设备 DahuaPort = 37810 DahuaListenPort = 37809 DahuaMulticastIP = "239.255.255.251" )
Variables ¶
This section is empty.
Functions ¶
func GetLocalNetworks ¶
func InitMultiReporter ¶
func InitMultiReporter(config *ReporterConfig) error
func ServiceInfoToString ¶
func ServiceInfoToString(ports []*stage.ServiceInfo) string
ServiceInfoToString 将 ServiceInfo 数组转换为端口字符串
Types ¶
type ARPDetector ¶
type ARPDetector struct { BaseDetector // contains filtered or unexported fields }
func NewARPDetector ¶
func NewARPDetector(iface string) *ARPDetector
func (*ARPDetector) Name ¶
func (a *ARPDetector) Name() string
type CameraDetector ¶
type CameraDetector struct { BaseDetector // contains filtered or unexported fields }
func NewCameraDetector ¶
func NewCameraDetector() *CameraDetector
func (*CameraDetector) Detect ¶
func (d *CameraDetector) Detect(target string) ([]stage.Node, error)
func (*CameraDetector) Name ¶
func (d *CameraDetector) Name() string
type ConsoleReporter ¶
type ConsoleReporter struct{}
func (*ConsoleReporter) ReportNodes ¶
func (cr *ConsoleReporter) ReportNodes(nodes []*stage.Node) error
type DBReporter ¶
type DBReporter struct {
// contains filtered or unexported fields
}
func NewDBReporter ¶
func NewDBReporter(db *sql.DB) *DBReporter
func (*DBReporter) ReportNodes ¶
func (dr *DBReporter) ReportNodes(nodes []*stage.Node) error
type DCERPCDetector ¶
type DCERPCDetector struct {
BaseDetector
}
func NewDCERPCDetector ¶
func NewDCERPCDetector() *DCERPCDetector
func (*DCERPCDetector) Detect ¶
func (d *DCERPCDetector) Detect(target string) ([]stage.Node, error)
func (*DCERPCDetector) Name ¶
func (d *DCERPCDetector) Name() string
type HTTPReporter ¶
type HTTPReporter struct {
// contains filtered or unexported fields
}
func NewHTTPReporter ¶
func NewHTTPReporter(endpoint string) *HTTPReporter
func (*HTTPReporter) ReportNodes ¶
func (hr *HTTPReporter) ReportNodes(nodes []*stage.Node) error
type MultiReporter ¶
type MultiReporter struct {
// contains filtered or unexported fields
}
MultiReporter 支持多种上报方式
func GetMultiReporter ¶
func GetMultiReporter() (*MultiReporter, error)
GetMultiReporter 获取MultiReporter实例
func (*MultiReporter) AddReporter ¶
func (mr *MultiReporter) AddReporter(r Reporter)
func (*MultiReporter) ReportNodes ¶
func (mr *MultiReporter) ReportNodes(nodes []*stage.Node) error
ReportNodes reports multiple nodes at once
type OUIDatabase ¶
type OUIDatabase struct {
// contains filtered or unexported fields
}
func GetOUIDatabase ¶
func GetOUIDatabase() *OUIDatabase
type PassiveDetector ¶
type PassiveDetector struct { BaseDetector // contains filtered or unexported fields }
func NewPassiveDetector ¶
func NewPassiveDetector() *PassiveDetector
func (*PassiveDetector) Detect ¶
func (p *PassiveDetector) Detect(target string) ([]stage.Node, error)
func (*PassiveDetector) Name ¶
func (p *PassiveDetector) Name() string
type PingDetector ¶
type PingDetector struct {
BaseDetector
}
func NewPingDetector ¶
func NewPingDetector() *PingDetector
func (*PingDetector) Name ¶
func (p *PingDetector) Name() string
type ReporterConfig ¶
type SNMPDetector ¶
type SNMPDetector struct { BaseDetector // contains filtered or unexported fields }
SNMPDetector SNMP探测器
func NewSNMPDetector ¶
func NewSNMPDetector() *SNMPDetector
func (*SNMPDetector) Name ¶
func (s *SNMPDetector) Name() string
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
func NewScanner ¶
func NewScanner(config *ScannerConfig) *Scanner
func (*Scanner) GetDiscoveredHosts ¶
type ScannerConfig ¶
type ZScanDetector ¶
type ZScanDetector struct { BaseDetector // contains filtered or unexported fields }
ZScanDetector zscan探测器
func NewZScanDetector ¶
func NewZScanDetector(config *ScannerConfig) *ZScanDetector
NewZScanDetector 创建新的ZScan探测器
func (*ZScanDetector) Name ¶
func (z *ZScanDetector) Name() string
Click to show internal directories.
Click to hide internal directories.