Land #2096 - Be able to show advanced options in msfvenom
commit
496de1755d
9
msfvenom
9
msfvenom
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue