Nmap (Network Mapper)是一個開放原始碼的網路掃描與探測工具,可以掃描整個子網域或主機的連接埠等。
掃描整個子網域 nmap 192.168.0.*
查尋主機的作業系統與各種服務的版本 aaa@hsiaoi-desktop:~$ nmap -A 192.168.0.109
輸出結果如下:
Starting Nmap 7.01 ( https://nmap.org ) at 2018-03-03 11:59 CST
Nmap scan report for 192.168.0.109
Host is up (0.00011s latency).
Not shown: 999 closed ports
PORT STATE SERVICE VERSION
22/tcp open ssh OpenSSH 7.2p2 Ubuntu 4ubuntu2.4 (Ubuntu Linux; protocol 2.0)
| ssh-hostkey:
| 2048 43:2d:a1:e0:36:88:8c:2d:59:8d:xx:xx:xx:xx:xx:xx (RSA)
|_ 256 0b:c4:13:84:09:8b:c5:ab:30:50:xx:xx:xx:xx:xx:xx (ECDSA)
Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 0.96 seconds