File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
modules/auxiliary/admin/http Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 1
1
##
2
- # This file is part of the Metasploit Framework and may be subject to
3
- # redistribution and commercial restrictions. Please see the Metasploit
4
- # web site for more information on licensing and terms of use.
5
- # http://metasploit.com/
2
+ # This module requires Metasploit: http//metasploit.com/download
3
+ # Current source: https://github.com/rapid7/metasploit-framework
6
4
##
7
5
8
6
require 'msf/core'
@@ -25,7 +23,7 @@ def initialize
25
23
'References' =>
26
24
[
27
25
[ 'CVE' , '2013-2143' ] ,
28
- [ 'CWE' , '862' ] ,
26
+ [ 'CWE' , '862' ]
29
27
] ,
30
28
'DisclosureDate' => 'Mar 24 2014'
31
29
)
@@ -61,7 +59,7 @@ def run
61
59
print_error ( 'Authentication failed' )
62
60
return
63
61
else
64
- session = $1 if res . headers [ 'Set-Cookie' ] =~ /_katello_session=(\S *);/
62
+ session = $1 if res . get_cookies =~ /_katello_session=(\S *);/
65
63
66
64
if session . nil?
67
65
print_error ( 'Failed to retrieve the current session' )
@@ -85,7 +83,7 @@ def run
85
83
print_error ( 'Authentication failed' )
86
84
return
87
85
else
88
- session = $1 if res . headers [ 'Set-Cookie' ] =~ /_katello_session=(\S *);/
86
+ session = $1 if res . get_cookies =~ /_katello_session=(\S *);/
89
87
90
88
if session . nil?
91
89
print_error ( 'Failed to retrieve the current session' )
You can’t perform that action at this time.
0 commit comments