Test fix for #4305
parent
d8b1401545
commit
f22d7191cd
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue