From 9b6f2fcd1de34a0cb4bd5a9d5b25438c7d3dd3fd Mon Sep 17 00:00:00 2001 From: James Lee Date: Fri, 8 Feb 2013 12:10:42 -0600 Subject: [PATCH] Use the install path to tell us the separator Fixes the java target on windows victims --- modules/exploits/multi/http/sonicwall_gms_upload.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/exploits/multi/http/sonicwall_gms_upload.rb b/modules/exploits/multi/http/sonicwall_gms_upload.rb index d46541a0cb..397116f37a 100644 --- a/modules/exploits/multi/http/sonicwall_gms_upload.rb +++ b/modules/exploits/multi/http/sonicwall_gms_upload.rb @@ -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