Nmap Development mailing list archives
Re: ncat broadcast support?
From: Ron <ron () skullsecurity net>
Date: Tue, 11 May 2010 15:31:23 -0500
I believe what you need to do is find out where it calls Socket() and add a call to Setsockopt() with SO_BROADCAST set to 1. Search udp.c in my nbtool codebase for 'SO_BROADCAST': http://svn.skullsecurity.org:81/ron/security/nbtool/udp.c To see an example. Hope that helps! On Tue, 11 May 2010 15:00:22 -0500 Daniel Miller <bonsaiviking () gmail com> wrote:
I would like to use ncat in UDP mode to send broadcast datagrams, but I get "permission denied" errors, even running as root. I understand that there are differences in how to call the underlying system calls when connecting to broadcast, and I'm willing to attempt a patch, but I don't know where to start. Could someone give me a quick pointer to the files I'd have to change to get this to work? doesnotwork# ncat -vvvvv --udp 192.168.1.255 161 Ncat: Version 5.30BETA1 ( http://nmap.org/ncat ) NSOCK (0.0010s) UDP connection requested to 255.255.255.255:161 (IOD #1) EID 8 NSOCK (0.0010s) Callback: CONNECT ERROR [Permission denied (13)] for EID 8 [255.255.255.255:161] Ncat: Permission denied. Thanks for any assistance (or "No, that's a bad idea," as the case may be) Dan _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
-- Ron Bowes http://www.skullsecurity.org http://www.twitter.com/iagox86
Attachment:
_bin
Description:
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- ncat broadcast support? Daniel Miller (May 11)
- Re: ncat broadcast support? Ron (May 11)
- Re: ncat broadcast support? Daniel Miller (May 12)
- Re: ncat broadcast support? Ron (May 12)
- Re: ncat broadcast support? Daniel Miller (May 12)
- Re: ncat broadcast support? Daniel Miller (May 12)
- Re: ncat broadcast support? Fyodor (May 12)
- Re: ncat broadcast support? Daniel Miller (May 13)
- Re: ncat broadcast support? Daniel Miller (May 13)
- Re: ncat broadcast support? Norris Carden (May 14)
- Re: ncat broadcast support? Daniel Miller (May 14)
- Re: ncat broadcast support? Luis MartinGarcia (May 14)
- Re: ncat broadcast support? Daniel Miller (May 12)
- Re: ncat broadcast support? Ron (May 11)