ports

package
v1.2.11 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scan added in v1.2.4

type Scan struct {
	IP    string `json:"ip" table:"IP"`
	Host  string `json:"hostname" table:"HOSTNAME"`
	Ports []int  `json:"open_ports" table:"OPEN_PORTS"`
}

type Scanner

type Scanner interface {
	Scan(context.Context) ([]Scan, error)
}

func NewScanner

func NewScanner(hosts []string, shouldScanAll bool) Scanner

NewScanner initializes a new port-scanner based on whether or not the user wants to scan all ports or just the well-known ports.

Jump to

Keyboard shortcuts

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