Fix #6008 for ack.rb

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

View File

@ -55,9 +55,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)
pcap.setfilter(getfilter(shost, sport, dhost, dport))
@ -65,7 +67,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(pcap, to)