Networking 使用“Nmap”时出错–;脚本“;arg

Networking 使用“Nmap”时出错–;脚本“;arg,networking,scripting,ubuntu-12.04,nmap,Networking,Scripting,Ubuntu 12.04,Nmap,我刚刚安装了nmap网络扫描仪, 当我尝试使用“-script”参数时,它不起作用: 例如: 我使用的是ElementaryOS Freya(我想是ubuntu 12.04)。 有什么想法吗 谢谢。应该是-script(带两个破折号),而不是-script 编辑:(在您的评论之后) 没问题。我的输出: $ nmap -p143,993 -Pn --script imap-capabilities 127.0.0.1 Starting Nmap 6.47 ( http://nmap.org )

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

我使用的是ElementaryOS Freya(我想是ubuntu 12.04)。 有什么想法吗


谢谢。

应该是
-script
(带两个破折号),而不是
-script

编辑:(在您的评论之后)

没问题。我的输出:

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

Starting Nmap 6.47 ( http://nmap.org ) at 2015-09-03 16:36 CEST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000040s latency).
PORT    STATE  SERVICE
143/tcp closed imap
993/tcp closed imaps

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

soufiane@soufiane-cvc:~$nmap-p143993-Pn-–script imap-capabilities 127.0.0.1 nmap:unrecogned option'-–script'nmap 6.40()用法:nmap[Scan Type(s)][Options]{target specification}目标规范:编辑了我的答案,我的nmap 6.47在这里没有问题。您当地的nmap手册页是否提到了
--script
选项,或者我建议您使用它,因为您在网站文档中看到了它?我刚刚重新启动了计算机,它工作了。您是对的,这是
--script
正确的参数可能是您如何从终端复制/粘贴到SO的问题,但实际上,复制您的精确文本,我对您的破折号有问题,我看到的是正常破折号,然后是一个长破折号。如果我复制/粘贴您的确切命令:
$nmap-p143993-Pn-–script imap-capabilities 127.0.0.1 nmap:unrecogned option'-–script'nmap 6.47(http://nmap.org )用法:nmap[Scan Type(s)][Options]{target specification}(以及选项列表的基本帮助)
。你能试着把我的命令复制/粘贴到你的终端上吗?我想你是对的,我试过你的版本,它成功了。非常感谢你
$ nmap -p143,993 -Pn --script imap-capabilities 127.0.0.1

Starting Nmap 6.47 ( http://nmap.org ) at 2015-09-03 16:36 CEST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000040s latency).
PORT    STATE  SERVICE
143/tcp closed imap
993/tcp closed imaps

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