Fix #4132 - msfvenom undefined method fullname for NilClass

bug/bundler_fix
sinn3r 2014-11-09 14:27:59 -06:00
parent 71a96f256b
commit 7980a7052c
1 changed files with 6 additions and 0 deletions

View File

@ -283,6 +283,12 @@ if __FILE__ == $0
if generator_opts[:list_options]
payload_mod = framework.payloads.create(generator_opts[:payload])
if payload_mod.nil?
$stderr.puts "Invalid payload: #{generator_opts[:payload]}"
exit
end
$stderr.puts "Options for #{payload_mod.fullname}\n\n" + ::Msf::Serializer::ReadableText.dump_module(payload_mod,' ')
exit(0)
end