Include the datastore options for the encoder too

bug/bundler_fix
Spencer McIntyre 2014-12-09 16:32:41 -05:00
parent ec53498aca
commit d74a8f6c41
1 changed files with 2 additions and 0 deletions

View File

@ -309,12 +309,14 @@ module Msf
# Allow comma seperated list of encoders so users can choose several
encoder.split(',').each do |chosen_encoder|
e = framework.encoders.create(chosen_encoder)
e.datastore.import_options_from_hash(datastore)
encoders << e if e
end
encoders.sort_by { |my_encoder| my_encoder.rank }.reverse
elsif badchars.present?
framework.encoders.each_module_ranked('Arch' => [arch], 'Platform' => platform_list) do |name, mod|
e = framework.encoders.create(name)
e.datastore.import_options_from_hash(datastore)
encoders << e if e
end
encoders.sort_by { |my_encoder| my_encoder.rank }.reverse