Ping Sweeping with Bash
Optional :
Save pingsweep script output to a text file :
./pingsweep.sh 192.168.1 > iplist.txt
Show contents of iplist.txt and sort by unique value
cat iplist | sort -unique
Creative usage:
For loop to do basic scan of the IPs in the list and save to text file
for ip in $(cat iplist.txt); do nmap -Pn $ip; done > nmapresults.txt
Last updated