From a80ac67373d3c8b5b492dbf4a81c679b5d7cd7a5 Mon Sep 17 00:00:00 2001 From: Jacob Robles Date: Mon, 12 Nov 2018 11:03:19 -0600 Subject: [PATCH] Prepend GO path --- lib/msf/core/modules/external/bridge.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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