port

package
v2.6.1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Port

type Port struct {
	Port     int               `json:"port"`
	Protocol protocol.Protocol `json:"protocol"`

	// Deprecated: TLS field will be removed in a future version
	TLS     bool     `json:"tls"`
	Service *Service `json:"service,omitempty"`
}

func (*Port) String

func (p *Port) String() string

func (*Port) StringWithDetails added in v2.3.5

func (p *Port) StringWithDetails() string

type Service added in v2.3.5

type Service struct {
	DeviceType  string   `json:"device_type,omitempty"`
	ExtraInfo   string   `json:"extra_info,omitempty"`
	HighVersion string   `json:"high_version,omitempty"`
	Hostname    string   `json:"hostname,omitempty"`
	LowVersion  string   `json:"low_version,omitempty"`
	Method      string   `json:"method,omitempty"`
	Name        string   `json:"name,omitempty"`
	OSType      string   `json:"os_type,omitempty"`
	Product     string   `json:"product,omitempty"`
	Proto       string   `json:"proto,omitempty"`
	RPCNum      string   `json:"rpc_num,omitempty"`
	ServiceFP   string   `json:"service_fp,omitempty"`
	Tunnel      string   `json:"tunnel,omitempty"`
	Version     string   `json:"version,omitempty"`
	Confidence  int      `json:"confidence,omitempty"`
	CPEs        []string `json:"cpes,omitempty"`
}

func (*Service) String added in v2.3.5

func (s *Service) String() string

Jump to

Keyboard shortcuts

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