scan

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2020 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Ports   map[int]struct{}
	Latency time.Duration
}

Result are the ports returned by the scanner along with latency, etc

type Scanner

type Scanner struct {
	// contains filtered or unexported fields
}

Scanner is a scanner that scans for ports using SYN packets.

func NewScanner

func NewScanner(host net.IP, timeout time.Duration, retries, rate int) (*Scanner, error)

NewScanner creates a new full port scanner that scans all ports using SYN packets.

func (*Scanner) ConnectVerify

func (s *Scanner) ConnectVerify(host string, ports map[int]struct{}) map[int]struct{}

ConnectVerify is used to verify if ports are accurate using a connect request

func (*Scanner) Scan

func (s *Scanner) Scan(wordlist map[int]struct{}) (*Result, error)

Scan scans a single host and returns the results

Jump to

Keyboard shortcuts

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