i just installed the nmap network scanner, and when i try to use it whith the "-script" parameter, it doesn't work: example:

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

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 (
Host is up (0.000025s latency).
143/tcp closed imap
993/tcp closed imaps

Nmap done: 1 IP address (1 host up) scanned in 0.15 seconds
  • 2
    Did you copy-paste that command from somewhere? it looks like the ASCII double hyphen -- got converted into a unicode en dash Sep 3, 2015 at 11:48

1 Answer 1


Using the right syntax:

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


You use


and the correct syntax is


and note the difference between your dash and -

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.