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
#!/bin/bash | |
# | |
# arp-monitor, an ARP tables monitor | |
# inspired by https://gist.github.com/maugern/30ace2764aafc683a802de2ed82f91af | |
# | |
# This script is intended to start on launch and run on an always connected device on a network (eg: server). | |
# It scans the network with 'arp -a' and sends a notification webhook whenever recognizes a new mac address on the network. | |
# | |
# For auto-run on login you can rename the script to a .command and add it to your Login items on Mac OS or | |
# modify the script to remove the loop and take a look at crontab |