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 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
i'm using ElementaryOS Freya (ubuntu 12.04 i guess). any ideas ??
thanks.
It should be –-script
(with two dashes), not -script
.
EDIT: (following your comment)
No problem here. My output:
$ 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