Documentation ¶
Index ¶
Constants ¶
View Source
const ( EchoReply = 0 DestinationUnreachable = 3 )
View Source
const MaxBufferSize = 65565
Variables ¶
This section is empty.
Functions ¶
func BreakUPPort ¶
BreakUPPort breaks up a port range into ports.
func ParseSubnet ¶
ParseSubnet parses a subnet into subnets.
func Segmentation ¶
Segmentation splits a subnet into segments.
Types ¶
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner is a UDP scanner.
func New ¶
New creates a new Scanner instance. opts: Scanning options. hosts: List of target hosts. ports: List of target ports. payloads: Custom payloads for specific ports. Returns a pointer to the Scanner instance.
func (*Scanner) Scan ¶
func (s *Scanner) Scan( errors chan<- ScannerError, seed int64, ) map[string][]byte
Scan scans the hosts and ports and returns the results.
type ScannerError ¶
ScannerError is a custom error structure to handle goroutine errors.
func (ScannerError) Error ¶
func (se ScannerError) Error() string
Click to show internal directories.
Click to hide internal directories.