Skip to content

Instantly share code, notes, and snippets.

@GaxZE
Last active August 9, 2020 12:14
Show Gist options
  • Save GaxZE/d719ec0522733693a85f8800af9a1220 to your computer and use it in GitHub Desktop.
Save GaxZE/d719ec0522733693a85f8800af9a1220 to your computer and use it in GitHub Desktop.
See what ip's are up on a network
#!/bin/bash
if [ "$1" == "" ]
then
echo "Missing ip address"
echo "Syntax: ./ipsweep.sh 192.168.1"
else
for ip in `seq 1 254`; do
ping -c 1 $1.$ip | grep "64 bytes" | cut -d " " -f 4 | tr -d ":" &
done
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment