Score:0

Scanning a range of ports with Ncat?

us flag

I'm aware that Nmap is the obvious choice for this task, however I would still like to know if it's possible to scan a range of ports with Ncat.

I see that I'm able to scan one port, but with a range of ports I get an error.

With traditional Netcat I see that it works, but with Ncat, when I run:

ncat -vzw1 scanme.nmap.org 20-25

I get:

Ncat: Version 7.91 ( https://nmap.org/ncat )
Ncat: Invalid port number "20-25". QUITTING.
Score:0
cn flag

That default Ncat is from Nmap, so that range of ports don't work for some reason.

You can then run : /bin/nc.traditional -nv IP 20-25

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.