Nmap Development mailing list archives

Re: List Scan Hosts and Ports


From: David Fifield <david () bamsoftware com>
Date: Wed, 21 Jan 2009 10:16:00 -0700

On Mon, Jan 19, 2009 at 09:43:16PM +0000, Mark Davidson wrote:
In nmap there is the functionality to list all the hosts that would be
scanned with given parameters using the -sL option.
I was wondering is there any possibility of being able to have the
functionality to output a list of all the hosts and ports that would be
scanned in a similar fashion?
As I am currently working on a project that would benefit from this greatly
or can anyone suggest a way of retrieving the ports that would be scanned in
another way.

I don't think Nmap provides any way to get the list of ports without
doing a scan. For your project you might hack in a patch like what I
attached. It prints all the port lists and exits, though you could make
it controlled with a command line option or something like that.

David Fifield

Attachment: port-lists.diff
Description:


_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org

Current thread: