This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Horrible bodge for when ESP82xx devices are not responding to ARP requests any more. | |
# This script can run anywhere on the subnet. It listens for ARP requests and responds | |
# with the MAC address in macDict based on the IP address. | |
# | |
# Note that it will ONLY respond if the IP address is found in macDict below. | |
# | |
# Please be careful with this tool. If wrongly configured, network breakage could occur. | |
# | |
# Requires scapy (pip install scapy) and tcpdump. Running tcpdump usually requires root | |
# so this script will need to be run as root. |