Skip to content

Commit e27adf6

Browse files
committed
Fix msftidy warnings
1 parent 473f745 commit e27adf6

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

modules/auxiliary/admin/http/katello_satellite_priv_esc.rb

100755100644
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
##
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
64
##
75

86
require 'msf/core'
@@ -25,7 +23,7 @@ def initialize
2523
'References' =>
2624
[
2725
['CVE', '2013-2143'],
28-
['CWE', '862'],
26+
['CWE', '862']
2927
],
3028
'DisclosureDate' => 'Mar 24 2014'
3129
)
@@ -61,7 +59,7 @@ def run
6159
print_error('Authentication failed')
6260
return
6361
else
64-
session = $1 if res.headers['Set-Cookie'] =~ /_katello_session=(\S*);/
62+
session = $1 if res.get_cookies =~ /_katello_session=(\S*);/
6563

6664
if session.nil?
6765
print_error('Failed to retrieve the current session')
@@ -85,7 +83,7 @@ def run
8583
print_error('Authentication failed')
8684
return
8785
else
88-
session = $1 if res.headers['Set-Cookie'] =~ /_katello_session=(\S*);/
86+
session = $1 if res.get_cookies =~ /_katello_session=(\S*);/
8987

9088
if session.nil?
9189
print_error('Failed to retrieve the current session')

0 commit comments

Comments
 (0)