Check method implemented
parent
6de0c9584d
commit
f08cf97224
|
@ -45,7 +45,15 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
end
|
||||
|
||||
def check
|
||||
res = send_request_cgi(
|
||||
'method' => 'GET',
|
||||
'uri' => normalize_uri(target_uri.path, 'bolt', 'bolt', 'login')
|
||||
)
|
||||
|
||||
if res && res.code == 200 && res.body.include?('Cookies are required to log on to Bolt')
|
||||
return Exploit::CheckCode::Appears
|
||||
end
|
||||
Exploit::CheckCode::Safe
|
||||
end
|
||||
|
||||
def username
|
||||
|
@ -81,8 +89,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
)
|
||||
|
||||
if res && res.code == 302 && res.redirection.to_s.include?('/bolt/bolt')
|
||||
session_cookie = res.get_cookies
|
||||
return session_cookie
|
||||
return res.get_cookies
|
||||
end
|
||||
nil
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue