File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
modules/auxiliary/admin/mssql Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ def get_win_domain_users(windows_domain_sid)
207
207
# Get windows domain
208
208
def get_windows_domain
209
209
210
- # Setup query to check for sysadmin
210
+ # Setup query to check the domain
211
211
sql = "SELECT DEFAULT_DOMAIN() as mydomain"
212
212
213
213
# Run query
@@ -224,7 +224,7 @@ def get_windows_domain
224
224
# Get the sql server's hostname
225
225
def get_sql_server_name
226
226
227
- # Setup query to check for sysadmin
227
+ # Setup query to check the server name
228
228
sql = "SELECT @@servername"
229
229
230
230
# Run query
@@ -245,7 +245,7 @@ def get_windows_domain_sid(sql_server_domain)
245
245
# Set group
246
246
domain_group = "#{ sql_server_domain } \\ Domain Admins"
247
247
248
- # Setup query to check for sysadmin
248
+ # Setup query to check the Domain SID
249
249
sql = "select SUSER_SID('#{ domain_group } ') as dasid"
250
250
251
251
# Run query
You can’t perform that action at this time.
0 commit comments