networkscan

package
v0.0.0-...-662d667 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IncrementIP

func IncrementIP(ip net.IP)

func MITM

func MITM(device Device)

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

func HandleARPPacket(packet gopacket.Packet) Device

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL