Documentation
¶
Overview ¶
Package lanscan contains a blazing fast port scanner for local networks
Package lanscan contains a blazing fast port scanner for local networks ¶
Package lanscan contains a blazing fast port scanner for local networks
Index ¶
- func CalculateSubnetIPs(cidr string, maxAddresses int) []string
- func IsLinkLocalAddress(ip net.IP) bool
- func LinkLocalAddresses(network string) []string
- func ProbeHosts(hosts <-chan string, port int, protocol string, respondingHosts chan<- string, ...)
- func ScanLinkLocal(network string, port int, threads int, timeout time.Duration) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateSubnetIPs ¶
CalculateSubnetIPs will calculate a given maximum of addresses in the given cidr address space.
func IsLinkLocalAddress ¶
IsLinkLocalAddress will check if the given IP address is considered link local.
func LinkLocalAddresses ¶
LinkLocalAddresses returns all link local IP addresses for the given network.
func ProbeHosts ¶
func ProbeHosts(hosts <-chan string, port int, protocol string, respondingHosts chan<- string, done chan<- bool)
ProbeHosts will read hosts to probe from the given channel and check the given port and protocol for each of them. Responding hosts will be written back into the second channel.
func ScanLinkLocal ¶
ScanLinkLocal scans all link local networks on all interfaces found on the current computer for hosts responding on the given port. It will use the given amout of threads and will return after the given timeout or after finishing the scan.
Types ¶
This section is empty.