diff --git a/lib/msf/core/modules/external/shim.rb b/lib/msf/core/modules/external/shim.rb index 56bf6299f5..3f4bcc4cae 100644 --- a/lib/msf/core/modules/external/shim.rb +++ b/lib/msf/core/modules/external/shim.rb @@ -2,8 +2,8 @@ require 'msf/core/modules/external' class Msf::Modules::External::Shim - def self.generate(module_path) - mod = Msf::Modules::External.new(module_path) + def self.generate(module_path, framework) + mod = Msf::Modules::External.new(module_path, framework: framework) return '' unless mod.meta case mod.meta['type'] when 'remote_exploit' diff --git a/lib/msf/core/modules/loader/executable.rb b/lib/msf/core/modules/loader/executable.rb index 8600d6c74c..6ebfad7381 100644 --- a/lib/msf/core/modules/loader/executable.rb +++ b/lib/msf/core/modules/loader/executable.rb @@ -85,7 +85,7 @@ class Msf::Modules::Loader::Executable < Msf::Modules::Loader::Base return '' end begin - content = Msf::Modules::External::Shim.generate(full_path) + content = Msf::Modules::External::Shim.generate(full_path, @module_manager.framework) if content return content else