Update gcc path

GSoC/Meterpreter_Web_Console
Brendan Coles 2018-09-15 18:16:03 +00:00
parent a8c459db18
commit 1f4a1a388e
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ class MetasploitModule < Msf::Exploit::Local
def upload_and_compile(path, data)
upload "#{path}.c", data
output = cmd_exec "PATH=$PATH:/usr/sfw/bin/ gcc -fPIC -shared -g -lc -o #{path} #{path}.c"
output = cmd_exec "PATH=$PATH:/usr/sfw/bin/:/opt/sfw/bin/ gcc -fPIC -shared -g -lc -o #{path} #{path}.c"
unless output.blank?
print_error output
fail_with Failure::Unknown, "#{path}.c failed to compile"