"–script"인수를 사용할 때 Nmap 오류


-1

방금 nmap 네트워크 스캐너를 설치했는데 "-script"매개 변수로 사용하려고하면 작동하지 않습니다 : 예 :

[email protected]:/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
2

Using the right syntax:

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

Why?

You use

–script

and the correct syntax is

--script

and note the difference between your dash and -