Prepend GO path

GSoC/Meterpreter_Web_Console
Jacob Robles 2018-11-12 11:03:19 -06:00
parent 8dc974b51e
commit a80ac67373
No known key found for this signature in database
GPG Key ID: 3EC9F18F2B12401C
1 changed files with 1 additions and 1 deletions

View File

@ -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