Skip to content

Instantly share code, notes, and snippets.

@jreisinger
Created December 13, 2021 07:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jreisinger/9626c8de55d948dcf44adb17c084bca3 to your computer and use it in GitHub Desktop.
Save jreisinger/9626c8de55d948dcf44adb17c084bca3 to your computer and use it in GitHub Desktop.
Poor man's version of https://github.com/pete911/arpf
#!/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