使用“–script”参数时出现 Nmap 错误

使用“–script”参数时出现 Nmap 错误

我刚刚安装了 nmap 网络扫描器,当我尝试使用“-script”参数时,它不起作用:例如:

soufiane@soufiane-cvc:/usr/local$ nmap -p143,993 -Pn –script imap-capabilities 127.0.0.1

Starting Nmap 6.40 ( http://nmap.org ) at 2015-09-03 10:07 WEST
Failed to resolve "–script".
Failed to resolve "imap-capabilities".
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000025s latency).
PORT    STATE  SERVICE
143/tcp closed imap
993/tcp closed imaps

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

答案1

使用正确的语法:

nmap -p143,993 -Pn --script imap-capabilities 127.0.0.1

为什么?

你用

–script

正确的语法是

--script

并注意破折号-

相关内容