Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IncrementIP ¶
func SendARPReply ¶
func SendARPReply(handle *pcap.Handle, targetMAC net.HardwareAddr, targetIP net.IP, localMAC net.HardwareAddr, localIP net.IP)
func SendARPRequest ¶
func SendARPRequest(handle *pcap.Handle, dstMAC net.HardwareAddr, srcMAC net.HardwareAddr, srcIP, dstIP net.IP)
Types ¶
type Device ¶
type Device struct {
IP net.IP
MAC net.HardwareAddr
HOSTNAME []string
}
func HandleARPPacket ¶
Helper function to handle ARP replies
type NetworkScanner ¶
type NetworkScanner struct {
// contains filtered or unexported fields
}
func NewNetworkScanner ¶
func NewNetworkScanner(ifaceName string) *NetworkScanner
func (*NetworkScanner) Close ¶
func (ns *NetworkScanner) Close()
func (*NetworkScanner) CutOffDevice ¶
func (ns *NetworkScanner) CutOffDevice(device Device, gateway string)
func (*NetworkScanner) NetScan ¶
func (ns *NetworkScanner) NetScan(targetNet string) []Device
Click to show internal directories.
Click to hide internal directories.