Validate search cmd arguments

GSoC/Meterpreter_Web_Console
Matthew Kienow 2018-04-30 00:02:03 -04:00
parent 89d86b1f48
commit cb8131ab22
No known key found for this signature in database
GPG Key ID: 40787F8B1EAC6E41
1 changed files with 6 additions and 0 deletions

View File

@ -465,6 +465,12 @@ module Msf
end
}
if match.empty? && search_term.nil?
print_error("Keywords or search argument required\n")
cmd_search_help
return
end
# Display the table of matches
tbl = generate_module_table("Matching Modules", search_term)
Msf::Modules::Metadata::Cache.instance.find(match).each do |m|