Land #9871, search without arguments shows help
Lol, you can still specify an empty string to search all modules.GSoC/Meterpreter_Web_Console
commit
cc9426860b
|
@ -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|
|
||||
|
|
Loading…
Reference in New Issue