Test fix for #4305

bug/bundler_fix
Jon Hart 2014-12-04 10:59:57 -08:00
parent d8b1401545
commit f22d7191cd
1 changed files with 5 additions and 1 deletions

View File

@ -309,7 +309,11 @@ module Msf
secret = "#{preamble}#{Rex::Text.rand_text(rand(0xff)+1)}"
begin
UDPSocket.open.send(secret, 0, dst_host, dst_port)
UDPSocket.open do |sock|
sock.setsockopt(::Socket::IPPROTO_IP, ::Socket::IP_TTL, 1)
sock.send(secret, 0, dst_host, dst_port)
end
#UDPSocket.open.send(secret, 0, dst_host, dst_port)
rescue Errno::ENETUNREACH
# This happens on networks with no gatway. We'll need to use a
# fake source hardware address.