Nmap Development mailing list archives
Re: Adding new NSE discovered targets to Nmap
From: Patrik Karlsson <patrik () cqure net>
Date: Fri, 13 Aug 2010 18:22:31 +0200
On 13 aug 2010, at 17.40, Daniel Miller wrote:
On 08/12/2010 04:02 PM, Ron wrote:On Thu, 12 Aug 2010 22:52:38 +0200 Patrik Karlsson<patrik () cqure net> wrote:About broadcast in NSE, do you need to do something to set SO_BROADCAST on the socket or is this taken care of?I'm *guessing* that's the issue, and I remember talking about enabling SO_BROADCAST on the list in the past. I don't think NSE has the ability to enable SO_BROADCAST, but I could be wrong.//PatrikSO_BROADCAST support was added to nsock, but is off by default. From nsock/include/nsock.h: /* Turns on or off broadcast support on new sockets. Default is off (0, false) set in nsp_new(). Any non-zero (true) value sets SO_BROADCAST on all new sockets (value of optval will be used directly in the setsockopt() call */ void nsp_setbroadcast(nsock_pool nsp, int optval); nsp_new() is called for NSE in nse_nsock.cc in luaopen_nsock(). To enable broadcast, a call to nsp_setbroadcast() must be made after that call.
Thanks Dan! I guess this is not currently possible and would require an additional function (eg: setbroadcast in nse_nsock.cc) accessible to NSE Lua right?
Dan _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
//Patrik -- Patrik Karlsson http://www.cqure.net http://www.twitter.com/nevdull77 _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Adding new NSE discovered targets to Nmap Djalal Harouni (Aug 12)
- Re: Adding new NSE discovered targets to Nmap Ron (Aug 12)
- Re: Adding new NSE discovered targets to Nmap Patrik Karlsson (Aug 12)
- Re: Adding new NSE discovered targets to Nmap Ron (Aug 12)
- Re: Adding new NSE discovered targets to Nmap Daniel Miller (Aug 13)
- Re: Adding new NSE discovered targets to Nmap Djalal Harouni (Aug 13)
- Re: Adding new NSE discovered targets to Nmap Patrik Karlsson (Aug 13)
- Re: Adding new NSE discovered targets to Nmap Fyodor (Aug 15)
- Re: Adding new NSE discovered targets to Nmap Ron (Aug 15)
- Re: Adding new NSE discovered targets to Nmap Patrik Karlsson (Aug 15)
- Re: Adding new NSE discovered targets to Nmap Fyodor (Aug 16)
- Re: Adding new NSE discovered targets to Nmap Patrik Karlsson (Aug 16)
- Re: Adding new NSE discovered targets to Nmap Ron (Aug 16)
- Re: Adding new NSE discovered targets to Nmap Patrik Karlsson (Aug 12)
- Re: Adding new NSE discovered targets to Nmap Ron (Aug 12)
- Re: Adding new NSE discovered targets to Nmap David Fifield (Sep 19)
- Re: Adding new NSE discovered targets to Nmap Patrik Karlsson (Aug 15)
- Re: Adding new NSE discovered targets to Nmap Ron (Aug 15)
- Receiving broadcasts in Nsock David Fifield (Aug 16)