Land #8322, fix for nil bug in nonexistent encoder
commit
2ab7a42d8b
|
@ -411,6 +411,10 @@ module Msf
|
||||||
# Allow comma separated list of encoders so users can choose several
|
# Allow comma separated list of encoders so users can choose several
|
||||||
encoder.split(',').each do |chosen_encoder|
|
encoder.split(',').each do |chosen_encoder|
|
||||||
e = framework.encoders.create(chosen_encoder)
|
e = framework.encoders.create(chosen_encoder)
|
||||||
|
if e.nil?
|
||||||
|
cli_print "Skipping invalid encoder #{chosen_encoder}"
|
||||||
|
next
|
||||||
|
end
|
||||||
e.datastore.import_options_from_hash(datastore)
|
e.datastore.import_options_from_hash(datastore)
|
||||||
encoders << e if e
|
encoders << e if e
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue