Ping Sweeper

tr -d "whatever you want to get rid of"

---------------------------------

#!/bin/bash

if ["$1" == "" ]

then

echo "You forgot an 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

./ipsweep.sh <x.x.x> > ips.txt

=================================================================

for ip in $(cat ips.txt); do nmap $ip & done

Last updated