博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Kali linux 2016.2(Rolling)中metasploit的主机探测
阅读量:6257 次
发布时间:2019-06-22

本文共 4935 字,大约阅读时间需要 16 分钟。

 

 

 

 

 

1、活跃主机扫描

 

 

root@kali:~# ping -c 5 202.193.58.13PING 202.193.58.13 (202.193.58.13) 56(84) bytes of data.64 bytes from 202.193.58.13: icmp_seq=1 ttl=64 time=25.4 msFrom 202.193.58.69: icmp_seq=2 Redirect Network(New nexthop: 202.193.58.13)64 bytes from 202.193.58.13: icmp_seq=2 ttl=64 time=9.26 msFrom 202.193.58.69: icmp_seq=3 Redirect Network(New nexthop: 202.193.58.13)64 bytes from 202.193.58.13: icmp_seq=3 ttl=64 time=6.98 msFrom 202.193.58.69: icmp_seq=4 Redirect Network(New nexthop: 202.193.58.13)64 bytes from 202.193.58.13: icmp_seq=4 ttl=64 time=3.47 msFrom 202.193.58.69: icmp_seq=5 Redirect Network(New nexthop: 202.193.58.13)64 bytes from 202.193.58.13: icmp_seq=5 ttl=63 time=4.89 ms--- 202.193.58.13 ping statistics ---5 packets transmitted, 5 received, 0% packet loss, time 4010msrtt min/avg/max/mdev = 3.476/10.010/25.439/7.959 msroot@kali:~#

 

 

 

 

当然,你也用下面这个

 

 

 

 

 

 

 

 

 

 

2、Metasploit的主机发现模块

   arp_sweep模块便是一个ARP扫描器,如下所示。

 

 

arp_sweep使用ARP请求美剧本地局域网中的所有活跃主机

udp_sweep通过发送UDP数据包探查制定主机是否活跃,兵发现主机上的UDP服务

 

 

root@kali:~# msfconsole

....

msf > use auxiliary/scanner/discovery/arp_sweepmsf auxiliary(arp_sweep) > show optionsModule options (auxiliary/scanner/discovery/arp_sweep):   Name       Current Setting  Required  Description   ----       ---------------  --------  -----------   INTERFACE                   no        The name of the interface   RHOSTS                      yes       The target address range or CIDR identifier   SHOST                       no        Source IP Address   SMAC                        no        Source MAC Address   THREADS    1                yes       The number of concurrent threads   TIMEOUT    5                yes       The number of seconds to wait for new datamsf auxiliary(arp_sweep) >

 

 

 

 

 

 

 

 

 

  设置好RHOSTS和THREADS参数后,输入run命令启动扫描器,如下图所示。

 

msf auxiliary(arp_sweep) > set RHOSTS 202.193.58.13/24RHOSTS => 202.193.58.13/24msf auxiliary(arp_sweep) > set THREADS 50THREADS => 50msf auxiliary(arp_sweep) > run[*] 202.193.58.7 appears to be up (UNKNOWN).[*] 202.193.58.7 appears to be up (UNKNOWN).[*] 202.193.58.9 appears to be up (UNKNOWN).[*] 202.193.58.9 appears to be up (UNKNOWN).[*] 202.193.58.11 appears to be up (UNKNOWN).[*] 202.193.58.12 appears to be up (UNKNOWN).[*] 202.193.58.13 appears to be up (UNKNOWN).[*] 202.193.58.13 appears to be up (ASUSTek COMPUTER INC.).[*] 202.193.58.14 appears to be up (UNKNOWN).[*] 202.193.58.19 appears to be up (UNKNOWN).[*] 202.193.58.20 appears to be up (ELITEGROUP COMPUTER SYSTEMS CO., LTD.).[*] 202.193.58.23 appears to be up (UNKNOWN).[*] 202.193.58.26 appears to be up (COMPAL INFORMATION(KUNSHAN)CO.,LTD).[*] 202.193.58.33 appears to be up (UNKNOWN).[*] 202.193.58.47 appears to be up (TP-LINK TECHNOLOGIES CO., LTD.).[*] 202.193.58.48 appears to be up (UNKNOWN).[*] 202.193.58.53 appears to be up (UNKNOWN).[*] 202.193.58.55 appears to be up (UNKNOWN).[*] 202.193.58.58 appears to be up (UNKNOWN).[*] 202.193.58.60 appears to be up (D-Link International).[*] 202.193.58.7 appears to be up (UNKNOWN).[*] 202.193.58.69 appears to be up (COMPAL INFORMATION (KUNSHAN) CO., LTD).[*] 202.193.58.73 appears to be up (ELITEGROUP COMPUTER SYSTEMS CO., LTD.).[*] 202.193.58.76 appears to be up (UNKNOWN).[*] 202.193.58.82 appears to be up (UNKNOWN).[*] 202.193.58.83 appears to be up (Armorlink shanghai Co. Ltd).[*] 202.193.58.85 appears to be up (QUANTA COMPUTER INC.).[*] 202.193.58.7 appears to be up (UNKNOWN).[*] 202.193.58.98 appears to be up (Advantech Technology (CHINA) Co., Ltd.).[*] 202.193.59.254 appears to be up (FUJIAN STAR-NET COMMUNICATION CO.,LTD).[*] 202.193.58.109 appears to be up (UNKNOWN).[*] 202.193.58.111 appears to be up (UNKNOWN).[*] 202.193.58.7 appears to be up (UNKNOWN).[*] 202.193.58.148 appears to be up (UNKNOWN).[*] 202.193.58.155 appears to be up (Jetway Information Co., Ltd.).[*] 202.193.58.13 appears to be up (UNKNOWN).[*] 202.193.58.162 appears to be up (UNKNOWN).[*] 202.193.58.165 appears to be up (Tenda Technology Co., Ltd.).[*] 202.193.58.171 appears to be up (UNKNOWN).[*] 202.193.58.179 appears to be up (UNKNOWN).[*] 202.193.58.180 appears to be up (Dell Inc).[*] 202.193.58.13 appears to be up (UNKNOWN).[*] 202.193.59.254 appears to be up (FUJIAN STAR-NET COMMUNICATION CO.,LTD).[*] 202.193.58.197 appears to be up (UNKNOWN).[*] 202.193.58.208 appears to be up (UNKNOWN).[*] 202.193.58.215 appears to be up (Universal Global Scientific Industrial Co., Ltd.).[*] 202.193.58.13 appears to be up (UNKNOWN).[*] 202.193.58.220 appears to be up (UNKNOWN).[*] 202.193.58.224 appears to be up (UNKNOWN).[*] 202.193.58.230 appears to be up (ELITEGROUP COMPUTER SYSTEMS CO., LTD.).[*] 202.193.58.231 appears to be up (UNKNOWN).[*] 202.193.58.236 appears to be up (G-PRO COMPUTER).[*] 202.193.58.242 appears to be up (UNKNOWN).[*] Scanned 256 of 256 hosts (100% complete)[*] Auxiliary module execution completedmsf auxiliary(arp_sweep) >

 

 

 

 

 

 

 

当然,大家可以用下面的

 

 

本文转自大数据躺过的坑博客园博客,原文链接:http://www.cnblogs.com/zlslch/p/6870183.html,如需转载请自行联系原作者

你可能感兴趣的文章
生成文件的MD5、SHA、SHA256
查看>>
(二十九)方法调用之解析
查看>>
Springboot文件上传与下载
查看>>
Windows 8开发 WinRT 对ZIP文件解压缩及文件夹的ZIP压缩
查看>>
博客园
查看>>
Activity与Fragment数据传递之Fragment从Activity获取数据 分类: ...
查看>>
libFM 简介
查看>>
非均衡数据分布的分类问题
查看>>
用JAVA代码构造一个日历
查看>>
oracle密码过期ORA-28002:口令将过期的解决方法
查看>>
webdriver css选取器
查看>>
浏览器窗口最大化
查看>>
B+树
查看>>
[转] Yslow-网站性能评分工具的图文解析
查看>>
简单工厂设计模式计算器
查看>>
WinFrom“动态”WebService
查看>>
【钢铁侠3】【高清1280版HD-RMVB.英语中字】【2013最新美国票房科幻动作大片】...
查看>>
Eclipse 修改JVM
查看>>
状态者模式 c#
查看>>
最长回文子串
查看>>