Do not send 2 content-length headers
parent
a32ffc4c26
commit
df215a380d
|
@ -78,7 +78,6 @@ module Metasploit
|
||||||
'headers' => {
|
'headers' => {
|
||||||
'Content-Type' => 'application/x-www-form-urlencoded',
|
'Content-Type' => 'application/x-www-form-urlencoded',
|
||||||
'Cookie' => "JSESSIONID=#{self.jsession}",
|
'Cookie' => "JSESSIONID=#{self.jsession}",
|
||||||
'Content-Length' => data.length
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -137,6 +136,8 @@ module Metasploit
|
||||||
if (res and res.code.to_i == 200 and res.body.match(p) != nil)
|
if (res and res.code.to_i == 200 and res.body.match(p) != nil)
|
||||||
return {:status => Metasploit::Model::Login::Status::SUCCESSFUL, :proof => res.body}
|
return {:status => Metasploit::Model::Login::Status::SUCCESSFUL, :proof => res.body}
|
||||||
end
|
end
|
||||||
|
elsif res and res.code == 400
|
||||||
|
raise GlassfishError, "400: Bad HTTP request from try_login"
|
||||||
end
|
end
|
||||||
|
|
||||||
{:status => Metasploit::Model::Login::Status::INCORRECT, :proof => res.body}
|
{:status => Metasploit::Model::Login::Status::INCORRECT, :proof => res.body}
|
||||||
|
|
Loading…
Reference in New Issue