Skip to content

Instantly share code, notes, and snippets.

@z3r0-0t
Created November 29, 2018 02:22
Show Gist options
  • Save z3r0-0t/e16fe4a4617640eda2392ce553b7add0 to your computer and use it in GitHub Desktop.
Save z3r0-0t/e16fe4a4617640eda2392ce553b7add0 to your computer and use it in GitHub Desktop.
#!/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
@z3r0-0t
Copy link
Author

z3r0-0t commented Nov 29, 2018

bash
Ping-Sweep.sh: Ping sweep a class C network

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment