Last active
August 9, 2020 12:14
-
-
Save GaxZE/d719ec0522733693a85f8800af9a1220 to your computer and use it in GitHub Desktop.
See what ip's are up on a network
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 | |
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