Skip to content

Commit fcb4bea

Browse files
committed
Fix code comments
1 parent 10d0305 commit fcb4bea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/auxiliary/admin/mssql/mssql_enum_windows_domain_accounts.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def get_win_domain_users(windows_domain_sid)
207207
# Get windows domain
208208
def get_windows_domain
209209

210-
# Setup query to check for sysadmin
210+
# Setup query to check the domain
211211
sql = "SELECT DEFAULT_DOMAIN() as mydomain"
212212

213213
# Run query
@@ -224,7 +224,7 @@ def get_windows_domain
224224
# Get the sql server's hostname
225225
def get_sql_server_name
226226

227-
# Setup query to check for sysadmin
227+
# Setup query to check the server name
228228
sql = "SELECT @@servername"
229229

230230
# Run query
@@ -245,7 +245,7 @@ def get_windows_domain_sid(sql_server_domain)
245245
# Set group
246246
domain_group = "#{sql_server_domain}\\Domain Admins"
247247

248-
# Setup query to check for sysadmin
248+
# Setup query to check the Domain SID
249249
sql = "select SUSER_SID('#{domain_group}') as dasid"
250250

251251
# Run query

0 commit comments

Comments
 (0)