Fix #6008 for syn.rb
parent
3888b793bd
commit
5b1ee8c8ca
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue