Skip to content

Commit 9b6f2fc

Browse files
committed
Use the install path to tell us the separator
Fixes the java target on windows victims
1 parent 5b39807 commit 9b6f2fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/multi/http/sonicwall_gms_upload.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def exploit_native
227227
end
228228

229229
def path_join(*paths)
230-
if target['Platform'] == "win"
230+
if install_path.include?("\\")
231231
path = paths.join("\\")
232232
path.gsub!(%r|\\+|, "\\\\\\\\")
233233
else

0 commit comments

Comments
 (0)