C:\Users\jiou>nmap 192.168.8.152
Starting Nmap 7.70 ( https://nmap.org ) at 2019-09-30 13:31 ?D1ú±ê×?ê±??
Nmap scan report for bogon (192.168.8.152)
Host is up (0.0016s latency).
Not shown: 998 filtered ports
PORT STATE SERVICE
80/tcp open http
3306/tcp open mysql
MAC Address: 00:0C:29:AF:1F:24 (VMware)
Nmap done: 1 IP address (1 host up) scanned in 11.73 seconds
加上参数可以获取更加详细的信息 如 -sV
C:\Users\jiou>nmap -sV 192.168.8.152
Starting Nmap 7.70 ( https://nmap.org ) at 2019-09-30 13:34 ?D1ú±ê×?ê±??
Nmap scan report for bogon (192.168.8.152)
Host is up (0.00039s latency).
Not shown: 998 filtered ports
PORT STATE SERVICE VERSION
80/tcp open http Apache httpd 2.4.23 ((Win32) OpenSSL/1.0.2j PHP/5.4.45)
3306/tcp open mysql MySQL (unauthorized)
MAC Address: 00:0C:29:AF:1F:24 (VMware)
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 19.80 seconds
对多个ip地址进行批量扫描
如下:使用,(逗号)隔开的方式对152和103进行同时扫描
也可以使用通配符的方式进行扫描 在ip网段的最后一位使用代替所有的号段进行批量扫描
如 nmap -sV 192.168.8.
C:\Users\jiou>nmap -sV 192.168.8.152,103
Starting Nmap 7.70 ( https://nmap.org ) at 2019-09-30 13:44 ?D1ú±ê×?ê±??
Nmap scan report for bogon (192.168.8.103)
Host is up (0.0051s latency).
All 1000 scanned ports on bogon (192.168.8.103) are closed
MAC Address: D8:9B:3B:E5:45:FB (Unknown)
Nmap scan report for 192.168.8.152
Host is up (0.00098s latency).
Not shown: 998 filtered ports
PORT STATE SERVICE VERSION
80/tcp open http Apache httpd 2.4.23 ((Win32) OpenSSL/1.0.2j PHP/5.4.45)
3306/tcp open mysql MySQL (unauthorized)
MAC Address: 00:0C:29:AF:1F:24 (VMware)
Service detection performed. Please report any incorrect results
从文件中导入ip地址 进行批量扫描 先在文件中写好ip地址
将dos切换到当前位置 输入nmap -iL ip.txt
C:\Users\jiou\Desktop>nmap -iL ip.txt
Starting Nmap 7.70 ( https://nmap.org ) at 2019-09-30 13:53 ?D1ú±ê×?ê±??
Nmap scan report for bogon (192.168.8.152)