Skip to content

Commit

Permalink
Use the install path to tell us the separator
Browse files Browse the repository at this point in the history
Fixes the java target on windows victims
  • Loading branch information
egypt committed Feb 8, 2013
1 parent 5b39807 commit 9b6f2fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/exploits/multi/http/sonicwall_gms_upload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def exploit_native
end

def path_join(*paths)
if target['Platform'] == "win"
if install_path.include?("\\")
path = paths.join("\\")
path.gsub!(%r|\\+|, "\\\\\\\\")
else
Expand Down

0 comments on commit 9b6f2fc

Please sign in to comment.