Created
November 29, 2018 02:22
-
-
Save z3r0-0t/e16fe4a4617640eda2392ce553b7add0 to your computer and use it in GitHub Desktop.
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 "Ex: bash Ping-sweep.sh 10.11.1." | |
else | |
for i in `seq 1 254`; do | |
ping -c 1 -i 0.2 -W 1 $1$i | grep "64 bytes" | cut -d " " -f4 | cut -d ":" -f1 &>> IPs.txt & | |
done | |
fi | |
#z3r00t |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
bash
Ping-Sweep.sh: Ping sweep a class C network