Nmap Development mailing list archives

Re: ncat broadcast support?


From: David Fifield <david () bamsoftware com>
Date: Tue, 18 May 2010 13:28:44 -0600

On Fri, May 14, 2010 at 07:15:17PM +0200, Luis MartinGarcia wrote:
Hi Daniel,

I've done a quick test on Windows using and old version of Nping to
generate UDP packets to addresses like 192.255.255.255 and I can
confirm it works fine. Note that the version I'm using is old and does
no SO_BROADCAST setsockopt at all. So yes, it looks like windows does
allow targeting broadcast addresses even if you don't set SO_BROADCAST
on the socket.


Luis MartinGarcia.

PS: MSDN documentation talks about SO_BROADCAST ("SO_BROADCAST, BOOL,
Enables transmission and receipt of broadcast messages on the
socket.") but does not mention whether it is set by default or not.
<http://msdn.microsoft.com/en-us/library/ms740476%28VS.85%29.aspx>

What happens if you getsockopt(SO_BROADCAST) on Windows? That would
check if it's set by default.

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: