add missing option serialiser

was missing the -o flag to output a payload's options
bug/bundler_fix
David Maloney 2014-02-13 10:19:26 -06:00
parent 4565be18e3
commit 0c9b386402
1 changed files with 6 additions and 0 deletions

View File

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