Nmap通过静态IP扫描Virtualbox Windows VM

Nmap通过静态IP扫描Virtualbox Windows VM

我在 Ubuntu 主机上设置了 Windows 7 VM,并为该 VM 分配了一个静态 IP(192.168.56.2),但当我尝试使用 nmap 扫描此 IP 时,得到了奇怪的结果

root@Host-PC:~# nmap 192.168.56.2

Starting Nmap 7.01 ( https://nmap.org ) at 2016-07-23 20:04 EEST
Nmap scan report for 192.168.56.2
Host is up (0.00061s latency).
All 1000 scanned ports on 192.168.56.2 are filtered
MAC Address: 08:00:27:E5:2A:3E (Oracle VirtualBox virtual NIC)

Nmap done: 1 IP address (1 host up) scanned in 21.40 seconds

从 Windows 客户机执行相同扫描时,结果为

nmap 192.168.56.2

Starting Nmap 7.25BETA1 ( https://nmap.org ) at 2016-07-23 20:06 Pacific Daylight Time

Nmap scan report for 192.168.56.2
Host is up (0.00053s latency).
Not shown: 988 closed ports

PORT      STATE SERVICE
135/tcp   open  msrpc
139/tcp   open  netbios-ssn
445/tcp   open  microsoft-ds
554/tcp   open  rtsp
1025/tcp  open  NFS-or-IIS
1026/tcp  open  LSA-or-nterm
1027/tcp  open  IIS
1028/tcp  open  unknown
1029/tcp  open  ms-lsa
2869/tcp  open  icslap
5357/tcp  open  wsdapi
10243/tcp open  unknown

Nmap done: 1 IP address (1 host up) scanned in 7.45 seconds

127.0.0.1 的输出相同。

所以我不确定为什么会发生这种情况,nmap(甚至是 ping)扫描实际上并没有到达 Windows VM,而是(我认为)到达了某些 virtualbox 网络接口。

我究竟做错了什么?

相关内容