Use the install path to tell us the separator
Fixes the java target on windows victimsbug/bundler_fix
parent
5b398076ae
commit
9b6f2fcd1d
|
@ -227,7 +227,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
end
|
||||
|
||||
def path_join(*paths)
|
||||
if target['Platform'] == "win"
|
||||
if install_path.include?("\\")
|
||||
path = paths.join("\\")
|
||||
path.gsub!(%r|\\+|, "\\\\\\\\")
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue