Nmap Development mailing list archives
Re: Two NSE questions
From: David Fifield <david () bamsoftware com>
Date: Tue, 29 Sep 2009 14:24:08 -0600
On Mon, Aug 31, 2009 at 08:39:21PM -0500, Ron wrote:
On 08/30/2009 12:57 AM, Fyodor wrote:On Sat, Aug 29, 2009 at 08:46:39PM -0500, Ron wrote:First, I need to set my source port to UDP/68 for these transactions. I don't see any way to do that using the connect() function. I realize that UDP/68 is reserved so r00t is required, but -sU requires root anyways.This is supported by Nsock, but there may not currently be an NSE binding for using this feature. Ncat supports this (try ncat -u -p 68 scanme.nmap.org). In Nsock, I think you basically just call this function: /* Sets the local address to bind to before connect() */ int nsi_set_localaddr(nsock_iod nsi, struct sockaddr_storage *ss, size_t sslen);Hey, would somebody mind adding this? It'd be nice to have, and I don't really want to muck around in the bindings myself.
Ron, if you propose an interface for setting the source address I'll look into writing the binding. Just show me a snippet of your code as it would work with the new function, and any other cases you think need to be handled. David Fifield _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- Two NSE questions Ron (Aug 29)
- Re: Two NSE questions Patrick Donnelly (Aug 29)
- Re: Two NSE questions Ron (Aug 29)
- Re: Two NSE questions Fyodor (Aug 29)
- Re: Two NSE questions Ron (Aug 31)
- Re: Two NSE questions David Fifield (Sep 01)
- Re: Two NSE questions Kris Katterjohn (Sep 01)
- Re: Two NSE questions Kris Katterjohn (Sep 01)
- Re: Two NSE questions David Fifield (Sep 29)
- Re: Two NSE questions Ron (Sep 29)
- Re: Two NSE questions David Fifield (Sep 30)
- Re: Two NSE questions Kris Katterjohn (Sep 30)
- Re: Two NSE questions Ron (Aug 31)
- Re: Two NSE questions Patrick Donnelly (Aug 29)