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

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  
主站蜘蛛池模板: 南京市| 电白县| 三门县| 永清县| 岳普湖县| 道孚县| 原阳县| 洪洞县| 罗江县| 河南省| 万山特区| 禹州市| 察雅县| 浮山县| 长子县| 沁阳市| 慈利县| 石嘴山市| 明光市| 潍坊市| 凌源市| 五华县| 台中县| 吉林省| 余姚市| 齐河县| 湖北省| 拉萨市| 岳池县| 阳朔县| 凤山县| 新泰市| 乐都县| 措勤县| 建阳市| 横山县| 孟津县| 湾仔区| 福贡县| 克山县| 大同市|