Skip to content

Commit 20c5e08

Browse files
committed
msfvenom - Added advance options
1 parent fca732d commit 20c5e08

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

msfvenom

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ def parse_args
9797
opts[:list_options] = true
9898
end
9999

100+
opt.on('-d', '--advance', 'List the payload\'s advance options') do
101+
opts[:list_advance] = true
102+
end
103+
100104
opt.on_tail('-h', '--help', 'Show this message') do
101105
$stderr.puts opt
102106
exit(1)
@@ -338,6 +342,11 @@ if opts[:list_options]
338342
exit
339343
end
340344

345+
if opts[:list_advance]
346+
puts Msf::Serializer::ReadableText.dump_advanced_options(payload)
347+
exit
348+
end
349+
341350
if payload_raw.nil? or payload_raw.empty?
342351
begin
343352
payload_raw = payload.generate_simple(

0 commit comments

Comments
 (0)