当我输入命令nmap –Pn –sT -sV –p0-65535 192.168.1.100
时,我的终端会响应:
Starting Nmap 7.60 ( https://nmap.org ) at 2018-01-29 11:24 PST
Failed to resolve "–Pn".
Failed to resolve "–sT".
Failed to resolve "–p0-65535".
Nmap scan report for 192.168.1.100
Host is up (0.0075s latency).
Not shown: 999 closed ports
PORT STATE SERVICE VERSION
53/tcp filtered domain
Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 1.73 seconds
我对为什么它无法解析标志感到困惑。这曾经在我的机器上工作;我有一台 MacBook,正在使用 bash 和 Kali Linux。我尝试重新启动两台机器,但无论我尝试扫描哪个 IP 地址,它都无法解析标志。
nmap 无法识别这些选项,因为它们以 unicode EN DASH (342 200 223,
–
) 开头,而不是连字符或常规破折号(-
)。结果,nmap 将这些“选项”解释为要解析的名称。