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 end
if encoders.empty? if encoders.empty?
cli_print "[!] Couldn't find encoder to use" cli_print "[!] Couldn't find encoder to use"
exit(1) return encoders
end end
encoders.sort_by { |my_encoder| my_encoder.rank }.reverse encoders.sort_by { |my_encoder| my_encoder.rank }.reverse
elsif !badchars.empty? && !badchars.nil? elsif !badchars.empty? && !badchars.nil?

View File

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