more osx support

bug/bundler_fix
Brent Cook 2017-08-22 14:01:48 -05:00
parent 7263c7a66e
commit bb120962aa
1 changed files with 7 additions and 6 deletions

View File

@ -685,15 +685,16 @@ class MetasploitModule < Msf::Exploit::Remote
when 'linux'
path = temp_path || '/tmp/'
payload_exe = "#{path}#{payload_exe}"
if @os.downcase =~ /win/
print_warning("#{@os} system detected but using Linux target...")
end
when 'osx'
path = temp_path || '/tmp/'
payload_exe = "#{path}#{payload_exe}"
when 'win'
path = temp_path || './'
payload_exe = "#{path}#{payload_exe}.exe"
unless @os.downcase =~ /win/
print_warning("#{@os} system detected but using Windows target...")
end
if @os.downcase =~ target['Platform']
print_warning("#{@os} system detected but using #{target['Platform']} target...")
end
return payload_exe, pl_exe