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 694eacf commit 7aa6776Copy full SHA for 7aa6776
modules/post/multi/gather/ping_sweep.rb
@@ -43,7 +43,6 @@ def run
43
print_status("Performing ping sweep for IP range #{iprange}")
44
iplst = []
45
begin
46
- a = []
47
ipadd = Rex::Socket::RangeWalker.new(iprange)
48
numip = ipadd.num_ips
49
while (iplst.length < numip)
@@ -81,6 +80,7 @@ def run
81
80
ip_found = []
82
83
while(not iplst.nil? and not iplst.empty?)
+ a = []
84
1.upto(thread_num) do
85
a << framework.threads.spawn("Module(#{self.refname})", false, iplst.shift) do |ip_add|
86
next if ip_add.nil?
0 commit comments