Check method implemented

bug/bundler_fix
Roberto Soares 2015-09-08 23:54:20 -03:00
parent 6de0c9584d
commit f08cf97224
1 changed files with 9 additions and 2 deletions

View File

@ -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