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

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  
主站蜘蛛池模板: 稻城县| 新巴尔虎右旗| 商南县| 张家港市| 孙吴县| 南靖县| 余姚市| 平乐县| 铜鼓县| 石家庄市| 昭觉县| 鄂尔多斯市| 无极县| 隆子县| 莱西市| 田东县| 乾安县| 上林县| 历史| 永春县| 中宁县| 葫芦岛市| 沙坪坝区| 滦南县| 封丘县| 双柏县| 聂拉木县| 北辰区| 呼玛县| 贵溪市| 花垣县| 渝北区| 景泰县| 沙田区| 阿拉尔市| 澜沧| 正定县| 乐山市| 南康市| 昌宁县| 方城县|