We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09db1f4 commit 834e499Copy full SHA for 834e499
lib/metasploit/framework/login_scanner/ivanti_login.rb
@@ -37,8 +37,11 @@ def do_admin_logout(cookies)
37
admin_page_res = send_request({ 'method' => 'GET', 'uri' => normalize_uri('/dana-admin/misc/admin.cgi?'), 'cookie' => cookies })
38
admin_page_s = admin_page_res.to_s
39
re = /xsauth=[a-z0-9]{32}/
40
- xsauth = re.match(admin_page_s)[0]
41
- send_request({ 'method' => 'GET', 'uri' => normalize_uri('/dana-na/auth/logout.cgi?' + xsauth), 'cookie' => cookies })
+ xsauth = re.match(admin_page_s)
+
42
+ return nil if xsauth.nil?
43
44
+ send_request({ 'method' => 'GET', 'uri' => normalize_uri('/dana-na/auth/logout.cgi?' + xsauth[0]), 'cookie' => cookies })
45
end
46
47
def get_token
0 commit comments