Nmap Development mailing list archives

Re: get_info() function


From: David Fifield <david () bamsoftware com>
Date: Thu, 28 Jan 2010 13:58:40 -0700

On Mon, Jan 25, 2010 at 10:42:39AM +0100, Patrik Karlsson wrote:
I noticed that the get_info()  function does not return the socket protocol.
http://nmap.org/nsedoc/lib/nmap.html#get_info

Is there any other way I can get this information from a socket?

I can't think of a way to do it. l_nsock_get_info in nse_nsock.cc finds
the protocol but doesn't return it. If you need this ability, and can
think of a good way to implement it, we can try to find a way to work it
in.

If you're creating the sockets yourself, you can create a table indexed
by socket that returns the protocol. You would have to create an entry
in the table every time you connect a socket.

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


Current thread: