Land #9737, Add batch_size to external batch scanners

GSoC/Meterpreter_Web_Console
Adam Cammack 2018-03-21 14:27:37 -05:00
commit 68083921c2
No known key found for this signature in database
GPG Key ID: C9378BA088092D66
1 changed files with 2 additions and 1 deletions

View File

@ -16,12 +16,13 @@ class MetasploitModule < Msf::Auxiliary
}) })
register_options([ register_options([
OptInt.new('batch_size', [false, 'Number of hosts to run in each batch', 200]),
<%= meta[:options] %> <%= meta[:options] %>
]) ])
end end
def run_batch_size def run_batch_size
200 datastore['batch_size']
end end
def run_batch(ips) def run_batch(ips)