Skip to content

Instantly share code, notes, and snippets.

@K-Francis-H
Created December 22, 2020 20:40
Show Gist options
  • Select an option

  • Save K-Francis-H/d4a3291c89c88bed158d167156848f42 to your computer and use it in GitHub Desktop.

Select an option

Save K-Francis-H/d4a3291c89c88bed158d167156848f42 to your computer and use it in GitHub Desktop.
#!/bin/sh
IPs=$(sudo arp-scan -l -q | awk '{print $1}' | grep -E [0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\} )
for ip in $IPs
do
#nmap -O $ip
echo $ip
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment