show help when no arguments provided to `search`

GSoC/Meterpreter_Web_Console
Auxilus 2018-04-13 01:27:22 +05:30 committed by GitHub
parent 2a6acfd1d0
commit 0b3f50ea80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -436,6 +436,11 @@ module Msf
# Searches modules for specific keywords
#
def cmd_search(*args)
if args.empty?
print_error("Argument required")
cmd_search_help
return
end
match = ''
search_term = nil
@@search_opts.parse(args) { |opt, idx, val|