Skip to content

Instantly share code, notes, and snippets.

@tesh254
Created February 11, 2020 09:56
Show Gist options
  • Save tesh254/7f3e5fd6831ec4a460f18435d84901eb to your computer and use it in GitHub Desktop.
Save tesh254/7f3e5fd6831ec4a460f18435d84901eb to your computer and use it in GitHub Desktop.
#!/bin/bash
if [ "$1" == "" ]
then
echo "You forgot an IP address"
echo "Syntax: ./ipsweep.sh 192.168.111"
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