Fix use -h to call cmd_use_help

It really shouldn't try to load it as a module.
GSoC/Meterpreter_Web_Console
William Vu 2018-08-04 15:32:58 -05:00
parent 95317618d4
commit ef6be1980f
1 changed files with 1 additions and 1 deletions

View File

@ -595,7 +595,7 @@ module Msf
# Uses a module.
#
def cmd_use(*args)
if (args.length == 0)
if args.length == 0 || args.first == '-h'
cmd_use_help
return false
end