Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithParallelRunners ¶
WithParallelRunners is used as an option in NewScanner to the maximum number af parallel probes to use
func WithProtocols ¶
WithProtocols is used as an option in NewScanner to set the protocols to test the ports with
func WithTimeout ¶
WithTimeout is used as an option in NewScanner to set the timeout for the port dial
Types ¶
type AddressSet ¶
AddressSet is a set of the IP port and protocol of a responding service
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner allows to port scan multiple IPs for multiple ports
func NewScanner ¶
NewScanner gives a new Scanner instance
func (*Scanner) Scan ¶
func (s *Scanner) Scan() []AddressSet
Scan performs a network scan and returns the responding addressses
func (*Scanner) ScanToLogger ¶
func (s *Scanner) ScanToLogger(log logger)
ScanToLogger perforn a scan and outputs the results to a logger interface
Click to show internal directories.
Click to hide internal directories.