Documentation
¶
Overview ¶
ARP scanning requires libpcap. macOS: available via Xcode command line tools or `brew install libpcap` Linux: `apt install libpcap-dev` or equivalent
Index ¶
- func ARPScan(iface *netinfo.InterfaceInfo, onHost func(ip string, mac net.HardwareAddr)) error
- func FallbackScan(iface *netinfo.InterfaceInfo, onHost func(ip string, mac net.HardwareAddr)) error
- func MeasureLatency(ip string, openPorts []int) (time.Duration, error)
- func RunScan(p *tea.Program, state *models.ScanState, cfg ScanConfig)
- func ScanPorts(ip string, ports []int) []models.Port
- type HostDiscoveredMsg
- type ScanCompleteMsg
- type ScanConfig
- type ScanProgressMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ARPScan ¶
func ARPScan(iface *netinfo.InterfaceInfo, onHost func(ip string, mac net.HardwareAddr)) error
func FallbackScan ¶
func FallbackScan(iface *netinfo.InterfaceInfo, onHost func(ip string, mac net.HardwareAddr)) error
FallbackScan discovers hosts without root by parsing arp -a and doing a ping sweep.
func MeasureLatency ¶
MeasureLatency measures round-trip time to a host. It tries TCP connect to known open ports, falling back to port 80.
Types ¶
type HostDiscoveredMsg ¶
type ScanCompleteMsg ¶
type ScanCompleteMsg struct{}
type ScanConfig ¶
type ScanProgressMsg ¶
Messages sent to the Bubble Tea program during scanning
Click to show internal directories.
Click to hide internal directories.