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

How to do it...

Let's perform the following steps:

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

The following screenshot shows the output of the preceding command:

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

The following screenshot shows the output of the preceding command:

Here, -Pn implies that we do not check whether the host is up or not by performing a ping request first; -sV is used to list all the running services on the open ports that we found.

  1. Another flag we can use is -A. This automatically performs OS detection, version detection, script scanning, and traceroute. The command is as follows:
nmap -A -Pn x.x.x.x 
  1. To scan an IP range or multiple IPs, we can use the following command:
nmap -A -Pn x.x.x.0/24  
主站蜘蛛池模板: 修文县| 赤水市| 昌江| 长寿区| 平山县| 仙居县| 闽清县| 卢氏县| 华容县| 旬邑县| 雷山县| 松潘县| 武宣县| 崇仁县| 宁都县| 随州市| 桃源县| 宝山区| 疏勒县| 郸城县| 武义县| 平顺县| 毕节市| 扶沟县| 顺昌县| 车致| 乡宁县| 江油市| 建湖县| 盐津县| 河池市| 怀仁县| 宜春市| 梁河县| 磐安县| 县级市| 镇原县| 扎赉特旗| 南江县| 亚东县| 林芝县|