The package implements a user level arp table management in golang that
monitor the local network for ARP changes and provide notifications
when a MAC switch between online and offline.
Force IP address change (IP spoofing)
The most useful function is to force an IP address change by claiming
the IP of a target MAC. It achieves this by persistently claiming the
IP address using ARP request/reply and activelly hunting the target MAC
until it gives up its IP. This is very effective against mobile devices
using DHCP however it does not work when client is using static address.
The package uses low level arp packets to enable:
* network discovery by polling 254 addresses
* notification when a MAC switch between online and offline
* forced IP address change
See the arplistener example for how to use it.
Tested on linux (Raspberry PI arm). Should work on Windows with tiny changes.
$ go get github.com/irai/arp
$ cd $GOPATH/src/github.com/irai/arp/arplistener
$ go install
$ sudo $GOPATH/bin/arplistener -i eth0
Create your own listener in a goroutine
Simply create a new handler and run ListenAndServe in a goroutine. The goroutine will
listen for ARP changes and generate a notification each time a mac changes between online/offline.