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