diff --git a/msfvenom b/msfvenom index 5cd4daf29f..3009c5355e 100755 --- a/msfvenom +++ b/msfvenom @@ -49,10 +49,10 @@ def init_framework(create_opts={}) ] create_opts[:module_types].map! do |type| - type = Msf.const_get("MODULE_#{type.upcase}") + Msf.const_get("MODULE_#{type.upcase}") end - @framework = ::Msf::Simple::Framework.create + @framework = ::Msf::Simple::Framework.create(create_opts) end # Cached framework object