From 86266dc636e12a4c19acf48469290bf9ad3e9aed Mon Sep 17 00:00:00 2001 From: Jacob Robles Date: Tue, 20 Mar 2018 14:47:46 -0500 Subject: [PATCH] Add batch_size option for external multi_scanner --- lib/msf/core/modules/external/templates/multi_scanner.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/msf/core/modules/external/templates/multi_scanner.erb b/lib/msf/core/modules/external/templates/multi_scanner.erb index 4bc0329822..56ee3069aa 100644 --- a/lib/msf/core/modules/external/templates/multi_scanner.erb +++ b/lib/msf/core/modules/external/templates/multi_scanner.erb @@ -16,12 +16,13 @@ class MetasploitModule < Msf::Auxiliary }) register_options([ + OptInt.new('batch_size', [false, 'Number of hosts to run in each batch', 200]), <%= meta[:options] %> ]) end def run_batch_size - 200 + datastore['batch_size'] end def run_batch(ips)