Use the install path to tell us the separator

Fixes the java target on windows victims
bug/bundler_fix
James Lee 2013-02-08 12:10:42 -06:00
parent 5b398076ae
commit 9b6f2fcd1d
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ class Metasploit3 < Msf::Exploit::Remote
end end
def path_join(*paths) def path_join(*paths)
if target['Platform'] == "win" if install_path.include?("\\")
path = paths.join("\\") path = paths.join("\\")
path.gsub!(%r|\\+|, "\\\\\\\\") path.gsub!(%r|\\+|, "\\\\\\\\")
else else