Update gcc path
parent
a8c459db18
commit
1f4a1a388e
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue