Skip to content

Commit 7aa6776

Browse files
committed
let's not rejoin threads we've already joined.
1 parent 694eacf commit 7aa6776

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/post/multi/gather/ping_sweep.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ def run
4343
print_status("Performing ping sweep for IP range #{iprange}")
4444
iplst = []
4545
begin
46-
a = []
4746
ipadd = Rex::Socket::RangeWalker.new(iprange)
4847
numip = ipadd.num_ips
4948
while (iplst.length < numip)
@@ -81,6 +80,7 @@ def run
8180
ip_found = []
8281

8382
while(not iplst.nil? and not iplst.empty?)
83+
a = []
8484
1.upto(thread_num) do
8585
a << framework.threads.spawn("Module(#{self.refname})", false, iplst.shift) do |ip_add|
8686
next if ip_add.nil?

0 commit comments

Comments
 (0)