Update
parent
f95b783193
commit
608bf55b79
|
@ -109,7 +109,7 @@ module Metasploit
|
||||||
})
|
})
|
||||||
|
|
||||||
unless res
|
unless res
|
||||||
return {:status => LOGIN_STATUS::UNABLE_TO_CONNECT, :proof => res.body}
|
return {:status => LOGIN_STATUS::UNABLE_TO_CONNECT, :proof => res.to_s}
|
||||||
end
|
end
|
||||||
|
|
||||||
# After login, the application should give us a new SID
|
# After login, the application should give us a new SID
|
||||||
|
@ -118,10 +118,10 @@ module Metasploit
|
||||||
@last_sid = sid # Update our SID
|
@last_sid = sid # Update our SID
|
||||||
|
|
||||||
if res.headers['Location'].to_s.include?('executive_summary.php') && !sid.blank?
|
if res.headers['Location'].to_s.include?('executive_summary.php') && !sid.blank?
|
||||||
return {:status => LOGIN_STATUS::SUCCESSFUL, :proof => res.body}
|
return {:status => LOGIN_STATUS::SUCCESSFUL, :proof => res.to_s}
|
||||||
end
|
end
|
||||||
|
|
||||||
{:status => LOGIN_STATUS::INCORRECT, :proof => res.body}
|
{:status => LOGIN_STATUS::INCORRECT, :proof => res.to_s}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue