analyze all host if no range provided

GSoC/Meterpreter_Web_Console
Jeffrey Martin 2019-02-15 17:40:11 -06:00
parent 5e8d33483e
commit a13198189e
No known key found for this signature in database
GPG Key ID: 0CD9BBC2AF15F171
1 changed files with 3 additions and 1 deletions

View File

@ -18,6 +18,8 @@ module Msf::Ui::Console::CommandDispatcher::Analyze
end
end
host_ranges.push(nil) if host_ranges.empty?
host_ids = []
suggested_modules = {}
each_host_range_chunk(host_ranges) do |host_search|
@ -29,7 +31,7 @@ module Msf::Ui::Console::CommandDispatcher::Analyze
end
if host_ids.empty?
print_status("No host found for #{host_ranges}.")
print_status("No existing hosts stored to analyze.")
else
host_ids.each do |id|