![nmap 主机发现](https://i-blog.csdnimg.cn/blog_migrate/f6a7d30c827afd02441021e7f3cba302.png)
nmap 主机发现
Nmap is popular tool used by pentesters, system administrators and network administrators. Nmap provides a lot of features for free. In this tutorial, we will look host discovery features and options of nmap.
Nmap是渗透测试人员,系统管理员和网络管理员常用的工具。 Nmap免费提供许多功能。 在本教程中,我们将研究主机发现功能和nmap选项。
通过ping扫描发现 (Discover with Ping Scan)
One of the basic usages for Host discovery is Ping scan. Ping uses ICMP protocol to communicate with targets. Targets generally responses Ping r ICMP requests which show the remote system is up. In some cases, a firewall can block Ping or ICMP packets where we can not get remote system status.
主机发现的基本用法之一是Ping扫描。 Ping使用ICMP协议与目标进行通信。 目标通常响应Ping r ICMP请求,以显示远程系统已启动。 在某些情况下,防火墙可以阻止我们无法获取远程系统状态的Ping或ICMP数据包。
$ nmap -sP 192.168.1.1
![Discover with Ping Scan](https://i-blog.csdnimg.cn/blog_migrate/76a1f4e5a48cdde8a667e75edb64fc24.png)
As we can see from the result that 1 IP address or Host is up.
从结果中我们可以看到1个IP地址或主机已启动。
使用ARP扫描或ARP Ping发现 (Discover with ARP Scan or ARP Ping)
Ethernet or Mac is a protocol used to communicate between host in a network. If the target is in the same network segment with us we can scan remote systems with ARP scan. ARP scan will send ARP request to the IP addresses and if remote systems respond to this ARP requests this means it is up. This