Land #11559, Fix `check` command with no arguments

master
Adam Cammack 2019-03-13 14:26:31 -05:00
commit a73393a0ea
No known key found for this signature in database
GPG Key ID: C9378BA088092D66
1 changed files with 2 additions and 1 deletions

View File

@ -126,7 +126,8 @@ module ModuleCommandDispatcher
return
end
ip_range_arg = args.join(' ') || mod.datastore['RHOSTS'] || framework.datastore['RHOSTS'] || ''
ip_range_arg = args.join(' ') unless args.empty?
ip_range_arg ||= mod.datastore['RHOSTS'] || framework.datastore['RHOSTS'] || ''
opt = Msf::OptAddressRange.new('RHOSTS')
begin