Fix #6008 for syn.rb

bug/bundler_fix
Jon Hart 2015-09-27 13:54:11 -07:00
parent 3888b793bd
commit 5b1ee8c8ca
No known key found for this signature in database
GPG Key ID: 2FA9F0A3AFA8E9D3
1 changed files with 7 additions and 2 deletions

View File

@ -53,9 +53,11 @@ class Metasploit3 < Msf::Auxiliary
to = (datastore['TIMEOUT'] || 500).to_f / 1000.0
# we copy the hosts because some may not be reachable and need to be ejected
host_queue = hosts.dup
# Spread the load across the hosts
ports.each do |dport|
hosts.each do |dhost|
host_queue.each do |dhost|
shost, sport = getsource(dhost)
self.capture.setfilter(getfilter(shost, sport, dhost, dport))
@ -63,7 +65,10 @@ class Metasploit3 < Msf::Auxiliary
begin
probe = buildprobe(shost, sport, dhost, dport)
capture_sendto(probe, dhost)
unless capture_sendto(probe, dhost)
host_queue.delete(dhost)
next
end
reply = probereply(self.capture, to)