IP Scanner

From TomSchaefer.org Wiki

Jump to: navigation, search

do ping.sh Show IP's who respond to ICMP traffic

 #!/bin/bash
 for ip in $(sql 1 254);do
 ping -c |192.168.1.$ip |grep "bytes from" |cut -d " " -f4 |cut -d ":" -f1 &
 done

Seq uses numbers between n1 and n2 ping -c is count & means execute every possiblility at the same time.

Lots of Traffic and noise/CPU but fast


More networks

 #!/bin/bash
 for ip in $(seq 1 254);do
 for ip2 in $(seq 1 255);do
 ping -c | 192.168.$ip2.$ip |grep "bytes from" |cut -d " " -f4 |cut -d ":" -f1 &
 done
 done

Save; sort -u <txt> > <newtxt>

Personal tools