Land #9871, search without arguments shows help

Lol, you can still specify an empty string to search all modules.
GSoC/Meterpreter_Web_Console
William Vu 2018-04-12 15:39:54 -05:00
commit cc9426860b
No known key found for this signature in database
GPG Key ID: 68BD00CE25866743
1 changed files with 7 additions and 1 deletions

View File

@ -410,7 +410,7 @@ module Msf
end
def cmd_search_help
print_line "Usage: search [keywords]"
print_line "Usage: search <keywords>"
print_line
print_line "Keywords:"
{
@ -436,6 +436,12 @@ module Msf
# Searches modules for specific keywords
#
def cmd_search(*args)
if args.empty?
print_error("Argument required\n")
cmd_search_help
return
end
match = ''
search_term = nil
@@search_opts.parse(args) { |opt, idx, val|