fping扫描,也就是传统的ping的加强版本啦,它可以同时ping多台主机,快速地从一堆主机中区分出哪些是在线的。
fping参数说明:
[root@memorylorry Desktop]# fping -h
Usage: fping [options] [targets...]
-a show targets that are alive
-A show targets by address
-b n amount of ping data to send, in bytes (default 56)
-B f set exponential backoff factor to f
-c n count of pings to send to each target (default 1)
-C n same as -c, report results in verbose format
-D print timestamp before each output line
-e show elapsed time on return packets
-f file read list of targets from a file ( - means stdin) (only if no -g specified)
-g generate target list (only if no -f specified)
(specify the start and end IP in the target list, or supply a IP netmask)
(ex. fping -g 192.168.1.0 192.168.1.255 or fping -g 192.168.1.0/24)
-H n Set the IP TTL value (Time To Live hops)
-i n interval between sending ping packets (in millisec) (default 25)
-I if bind to a particular interface
-l loop sending pings forever
-m ping multiple interfaces on target host
-n show targets by name (-d is equivalent)
-O n set the type of service (tos) flag on the ICMP packets
-p n interval between ping packets to one target (in millisec)
(in looping and counting modes, default 1000)
-q quiet (don't show per-target/per-ping results)
-Q n same as -q, but show summary every n seconds
-r n number of retries (default 3)
-R random packet data (to foil link data compression)
-s print final stats
-S addr set source address
-t n individual target initial timeout (in millisec) (default 500)
-T n ignored (for compatibility with fping 2.4)
-u show targets that are unreachable
-v show version
targets list of targets to check (if no -f specified)
别说看英文麻烦,多看点没错么,学电脑学最新的懂英语比较好!!
简单说明今天要用到的几个参数:
-a 显示活跃的主机,也就是在线的主机
-q 安静模式,不现实ping的所有主机
-s 统计信息啦,这次ping的所有主机中哪些活跃的哪些不在线的,都给你统计好
-g 指定一个子网,上面说了fping -g 192.168.1.0 192.168.1.255 or fping -g 192.168.1.0/24,那你在ping的时候,你选用其中一种方式就好了。
那把今天这些参数都用起来,构造
fping -g 183.95.235.102/24 -a -q -s
-g 指定了网段183.95.235.1-183.95.235.255
-a 指定显示活跃的主机
-q 不现实ping的内容
-s 统计信息
那最后得到的结果,很清楚了,如下图。
看来本网段还是慢活跃的,118个人在使用电脑!!!
最后,希望有兴趣的一起学习哦。
#欢迎加入白帽子 QQ群:113174342,大家一起交流学习哦#
转载于:https://blog.51cto.com/dectfix/1741248