Metasploit mailing list archives

sending UDP to broadcast address


From: hdm at metasploit.com (HD Moore)
Date: Mon, 13 Jul 2009 08:20:28 -0500

On Mon, 13 Jul 2009 07:37:57 -0500, Robin Wood <dninja at gmail.com> wrote:

2009/7/12 HD Moore <hdm at metasploit.com>:
On Sat, 11 Jul 2009 18:34:27 -0500, Robin Wood <dninja at gmail.com> wrote:

I've tried <broadcast> and still can't get anything. I've dug through
the socket and udp libraries and can't work out what I'm doing wrong.
If I put a unicast IP or a hostname as the sendto parameter the code
works.

The socket library is updated -- to make a broadcast-send capable socket,  
pass 'Broadcast' => true in the creation parameters (with 'PeerHost', etc).

-HD


Current thread: