diff --git a/lib/msf/core/modules/external/bridge.rb b/lib/msf/core/modules/external/bridge.rb index 674986fa07..f7159d4186 100644 --- a/lib/msf/core/modules/external/bridge.rb +++ b/lib/msf/core/modules/external/bridge.rb @@ -202,7 +202,7 @@ class Msf::Modules::External::GoBridge < Msf::Modules::External::Bridge def initialize(module_path, framework: nil) super gopath = ENV['GOPATH'] || '' - self.env = self.env.merge({ 'GOPATH' => gopath + File::PATH_SEPARATOR + File.expand_path('../go', __FILE__) }) + self.env = self.env.merge({ 'GOPATH' => File.expand_path('../go', __FILE__) + File::PATH_SEPARATOR + gopath}) self.cmd = ['go', 'run', self.path] end end