diff --git a/lib/msf/ui/console/command_dispatcher/auxiliary.rb b/lib/msf/ui/console/command_dispatcher/auxiliary.rb index a644a2c13f..5fb49bcb12 100644 --- a/lib/msf/ui/console/command_dispatcher/auxiliary.rb +++ b/lib/msf/ui/console/command_dispatcher/auxiliary.rb @@ -123,7 +123,7 @@ class Auxiliary jobify = true end - unless mod.datastore['RHOSTS'].nil? + if mod.datastore['RHOSTS'] rhosts_range = Rex::Socket::RangeWalker.new(mod.datastore['RHOSTS']) unless rhosts_range && rhosts_range.length print_error("Auxiliary failed: option RHOSTS failed to validate.")