Land #10621, Update Msf::Post::Solaris::System has_gcc? method

Updated the Msf::Post::Solaris::System has_gcc? method to also check the
default path for gcc on Solaris: /usr/sfw/bin/gcc
GSoC/Meterpreter_Web_Console
Brendan Coles 2018-09-11 09:47:37 +00:00
commit edbe4988d2
No known key found for this signature in database
GPG Key ID: 3EB700FCFBA899B5
1 changed files with 2 additions and 1 deletions

View File

@ -93,7 +93,8 @@ module System
# @return [Boolean]
#
def has_gcc?
command_exists? 'gcc'
# https://github.com/rapid7/metasploit-framework/pull/10437#issuecomment-419984613
command_exists?('gcc') || command_exists?('/usr/sfw/bin/gcc')
rescue
raise 'Unable to check for gcc'
end