We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8b1401 commit f22d719Copy full SHA for f22d719
lib/msf/core/exploit/capture.rb
@@ -309,7 +309,11 @@ def probe_gateway(addr)
309
secret = "#{preamble}#{Rex::Text.rand_text(rand(0xff)+1)}"
310
311
begin
312
- UDPSocket.open.send(secret, 0, dst_host, dst_port)
+ UDPSocket.open do |sock|
313
+ sock.setsockopt(::Socket::IPPROTO_IP, ::Socket::IP_TTL, 1)
314
+ sock.send(secret, 0, dst_host, dst_port)
315
+ end
316
+ #UDPSocket.open.send(secret, 0, dst_host, dst_port)
317
rescue Errno::ENETUNREACH
318
# This happens on networks with no gatway. We'll need to use a
319
# fake source hardware address.
0 commit comments