Address final review comments
parent
5ba8467933
commit
f28c4fc01e
|
@ -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?
|
||||
|
|
4
msfvenom
4
msfvenom
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue