Ping a network and create a text file of alive hosts

buy accutane online yahoo

http://getcareerclarity.com/skype-hookup This is to make it quick and easy to find machines that are on a network (that are responding to ICMP requests)

[root:~/Desktop]# fping -g $iprange -a > ips.txt 2> /dev/null

-g = generate a list

-a = only show alive hosts

2> /dev/null = output unresponsive to dev null instead of to terminal (std1)

In use:

[root:~/Desktop]# fping -g 10.194.0.0/24 -a > ips.txt 2> /dev/null
[root:~/Desktop]# cat ips.txt 
10.194.0.1
10.194.0.2
10.194.0.3
10.194.0.4
10.194.0.5
10.194.0.6
10.194.0.7
10.194.0.8
10.194.0.9
10.194.0.10
10.194.0.11
10.194.0.12
10.194.0.13
10.194.0.14
10.194.0.15
10.194.0.16
10.194.0.17
10.194.0.18
10.194.0.19
10.194.0.21
10.194.0.22
10.194.0.23
10.194.0.24
10.194.0.25
10.194.0.26
10.194.0.27
10.194.0.28
10.194.0.29
10.194.0.30
10.194.0.32
10.194.0.34
10.194.0.35
10.194.0.38
10.194.0.41
10.194.0.44
10.194.0.45
10.194.0.46
[root:~/Desktop]#

Once you have a text file you can do things like nmap scans from that file. Let me know what other things you would use this text file for.

rowbot

Share

Leave a Reply

Your email address will not be published. Required fields are marked *

Post comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.