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

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  
主站蜘蛛池模板: 泌阳县| 茂名市| 尚志市| 峨边| 阿瓦提县| 三都| 郯城县| 明溪县| 鄂托克前旗| 文登市| 康平县| 班戈县| 涿州市| 开江县| 昌图县| 开平市| 泾阳县| 桐城市| 水城县| 扶余县| 雅江县| 荃湾区| 昌图县| 长岭县| 义马市| 龙门县| 海口市| 漳州市| 上林县| 三穗县| 饶阳县| 边坝县| 西安市| 新和县| 新源县| 鸡泽县| 彰化市| 沙雅县| 巫山县| 那坡县| 沅陵县|