Created
December 13, 2021 07:52
-
-
Save jreisinger/9626c8de55d948dcf44adb17c084bca3 to your computer and use it in GitHub Desktop.
Poor man's version of https://github.com/pete911/arpf
This file contains hidden or 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 | |
subnet=$1 | |
[ -z $subnet ] && echo "Usage: $0 <subnet>" && exit 1 | |
for host in $(seq 1 254); do | |
(ping -c1 -t1 $subnet.$host > /dev/null && arp $subnet.$host) & | |
done | |
sleep 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment