官术网_书友最值得收藏!

How to do it...

The following is the recipe for using Nmap:

  1. Nmap is already installed in Kali Linux. We can type the following command to start it and see all the options available:
        nmap -h

The following screenshot shows the output of the preceding command:

  1. To perform a basic scan we use the following command:
        nmap -sV -Pn x.x.x.x

The following screenshot shows the output of the preceding command:

  1. -Pn implies that we do not check whether the host is up or not by performing a ping request first. The -sV parameter is to list all the running services on the found open ports.
  2. Another flag we can use is -A, which automatically performs OS detection, version detection, script scanning, and traceroute. The command is:
        nmap -A -Pn x.x.x.x
  1. To scan an IP range or multiple IPs, we can use this command:
        nmap -A -Pn x.x.x.0/24
主站蜘蛛池模板: 栾川县| 呈贡县| 镇沅| 集安市| 含山县| 休宁县| 松潘县| 英德市| 天台县| 香格里拉县| 广南县| 淅川县| 乡宁县| 锡林郭勒盟| 安阳市| 黑山县| 南充市| 南京市| 高台县| 孝义市| 巴南区| 鹿泉市| 巨野县| 庆阳市| 霍州市| 修武县| 沾益县| 延长县| 泊头市| 开封市| 新安县| 石嘴山市| 海宁市| 建瓯市| 平山县| 正定县| 桦甸市| 永康市| 阜宁县| 会同县| 云梦县|