Land #2096 - Be able to show advanced options in msfvenom

unstable
sinn3r 2013-07-11 11:41:50 -05:00
commit 496de1755d
1 changed files with 9 additions and 0 deletions

View File

@ -97,6 +97,10 @@ def parse_args
opts[:list_options] = true
end
opt.on('-d', '--advance', 'List the payload\'s advance options') do
opts[:list_advance] = true
end
opt.on_tail('-h', '--help', 'Show this message') do
$stderr.puts opt
exit(1)
@ -338,6 +342,11 @@ if opts[:list_options]
exit
end
if opts[:list_advance]
puts Msf::Serializer::ReadableText.dump_advanced_options(payload)
exit
end
if payload_raw.nil? or payload_raw.empty?
begin
payload_raw = payload.generate_simple(