Address final review comments

GSoC/Meterpreter_Web_Console
William Vu 2018-06-01 18:33:07 -05:00
parent 5ba8467933
commit f28c4fc01e
2 changed files with 3 additions and 3 deletions

View File

@ -437,7 +437,7 @@ module Msf
end
if encoders.empty?
cli_print "[!] Couldn't find encoder to use"
exit(1)
return encoders
end
encoders.sort_by { |my_encoder| my_encoder.rank }.reverse
elsif !badchars.empty? && !badchars.nil?

View File

@ -69,8 +69,8 @@ def parse_args(args)
opt.separator('')
opt.separator('Options:')
opt.on('-l', '--list <type>', Array, 'List all module for [type]. Types are: payloads, encoders, nops, platforms, encrypt, formats, all') do |l|
if l.nil? or l.empty?
opt.on('-l', '--list <type>', Array, 'List all modules for [type]. Types are: payloads, encoders, nops, platforms, encrypt, formats, all') do |l|
if l.to_s.empty?
l = ["all"]
end
opts[:list] = l