From 3aea9bc477f4cb56c32db1ac9f1e7ab6cf2cb963 Mon Sep 17 00:00:00 2001 From: Adam Cammack Date: Thu, 28 Feb 2019 10:52:26 -0600 Subject: [PATCH] Fix `check` to use all the IP addresses passed --- lib/msf/ui/console/module_command_dispatcher.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/msf/ui/console/module_command_dispatcher.rb b/lib/msf/ui/console/module_command_dispatcher.rb index c58f6d1f90..f83737f705 100644 --- a/lib/msf/ui/console/module_command_dispatcher.rb +++ b/lib/msf/ui/console/module_command_dispatcher.rb @@ -126,7 +126,7 @@ module ModuleCommandDispatcher return end - ip_range_arg = args.shift || mod.datastore['RHOSTS'] || framework.datastore['RHOSTS'] || '' + ip_range_arg = args.join(' ') || mod.datastore['RHOSTS'] || framework.datastore['RHOSTS'] || '' opt = Msf::OptAddressRange.new('RHOSTS') begin