Fixed msfvenom when displaying options

unstable
g0tmi1k 2013-06-26 15:13:50 +01:00
parent 9028eed573
commit 91b4d95c3f
1 changed files with 7 additions and 6 deletions

View File

@ -295,11 +295,6 @@ if opts[:payload]
print_error("Invalid payload: #{opts[:payload]}")
exit
end
if opts[:list_options]
print_status("Options for #{payload.fullname}\n\n" +
::Msf::Serializer::ReadableText.dump_options(payload,' '))
exit
end
payload.datastore.merge! datastore
end
end
@ -339,9 +334,15 @@ else
encoders = get_encoders(opts[:arch], opts[:encoder])
end
if opts[:list_options]
print_status("Options for #{payload.fullname}\n\n" +
::Msf::Serializer::ReadableText.dump_options(payload,' '))
exit
end
if payload_raw.nil? or payload_raw.empty?
begin
payload_raw = payload.generate_simple(
payload_raw = payload.generate_simple(
'Format' => fmt,
'Options' => datastore,
'Encoder' => nil)