Home page logo
/

nmap-dev logo Nmap Development mailing list archives

Re: reading target port numbers from a script
From: David Fifield <david () bamsoftware com>
Date: Wed, 12 Jan 2011 16:54:33 -0800

On Mon, Jan 10, 2011 at 10:22:35AM +0200, Toni Ruottu wrote:
Can my script somehow access the target port definition that user has
given to nmap with -p?

I guess you could call nmap.get_ports will all of the possible port
states. That will be inefficient because it will cause a Port object to
be allocated when it otherwise might not. (I'm not sure about that, it's
just my guess.)

http://nmap.org/nsedoc/lib/nmap#get_ports

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


  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]