Land #4161, "fullname" NilClass fix

bug/bundler_fix
William Vu 2014-11-09 20:07:37 -06:00
commit 88810ce836
No known key found for this signature in database
GPG Key ID: E761DCB4C1629024
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