package
2.0.0-alpha3+incompatible
Repository: https://github.com/nray-scanner/nray.git
Documentation: pkg.go.dev

# Functions

GenerateIPStreamFromCIDR uses the ZMap algorithm to expand a CIDR network.
GeneratePortStream takes a list of ports and returns them in arbitrary order over a channel.
GetNmapTopTCPPorts returns an array containing the topN TCP ports.
GetNmapTopUDPPorts returns an array containing the topN UDP ports.
NewBlacklist returns a new blacklist.
ParsePorts takes the a list of target strings supplied by the user and tries to parse them into a slice of uint32s Errors are sent back over errorChan.

# Variables

TopTCPPorts contains a static list of top TCP ports as contained in nmap 7.70 The list is created via sort -r -k3 /usr/share/nmap/nmap-services | grep tcp | awk '{split($2, splitted, "/"); print splitted[1]}'.
TopUDPPorts contains a static list of top UDP ports as contained in nmap 7.70, generated the same way as TCP ports.

# Structs

AnyTargets is the most abstract type holding information regarding targets.
NrayBlacklist allows to add/query ip/net/dns blacklisted items.
TargetGenerator is the type that unifies all backends and provides central access to all generated targets.