Nmap Development mailing list archives

Re: List Hosts with Open Port 3389


From: David Fifield <david () bamsoftware com>
Date: Sat, 7 Feb 2015 11:05:14 -0800

On Sat, Feb 07, 2015 at 07:49:57PM +0100, Esben Stien wrote:

I'm scanning a network to list hosts with 3389 port open. 

I use this command: 

sudo nmap -p3389 -P0 -sS 10.0.13.0/24

It gives a long list, as there any many hosts on this network, but the
list it gives is really a list with all hosts detected and then tells
if port 3389 is open or closed. 

Is there a way to just provide a clean answer, like just listing the
hosts with have the 3389 port open?

Does it have to be a long bash script to get a simple answer to a simple
question?

Any pointers as to how to solve this?

Use the --open option.

sudo nmap --open -p3389 -P0 -sS 10.0.13.0/24

David Fifield
_______________________________________________
Sent through the dev mailing list
https://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/


Current thread: