nmap --script smb-os-discovery 192.168.0.1
抓以下兩個區塊的資料
MAC Address: 4C:CC:6A:77:A5:98 (Micro-star Intl)
Host script results:
| smb-os-discovery:
| OS: Windows 7 Enterprise 7601 Service Pack 1 (Windows 7 Enterprise 6.1)
| OS CPE: cpe:/o:microsoft:windows_7::sp1
| Computer name: xx
| NetBIOS computer name: xx\x00
| Workgroup: xxgroup\x00
|_ System time: 2018-09-07T10:03:26+08:00