Skip to content

Commit 9bd4f91

Browse files
committed
fix review
1 parent 832969c commit 9bd4f91

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

nxc/modules/enum_logins.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def get_logins(self) -> list:
4545
WHEN 'SQL_LOGIN' THEN 'SQL User'
4646
WHEN 'WINDOWS_LOGIN' THEN
4747
CASE
48+
WHEN name LIKE 'NT AUTHORITY\\%' OR name LIKE 'NT SERVICE\\%' THEN 'Local User'
4849
WHEN name LIKE '%\\%' THEN 'Domain User'
4950
ELSE 'Local User'
5051
END
@@ -58,7 +59,6 @@ def get_logins(self) -> list:
5859
FROM sys.server_principals
5960
WHERE type IN ('S', 'U', 'G', 'C', 'K')
6061
AND name NOT LIKE '##%'
61-
AND name NOT IN ('sa') OR name = 'sa'
6262
ORDER BY login_type, name;
6363
"""
6464
try:
@@ -76,3 +76,4 @@ def get_logins(self) -> list:
7676

7777
def options(self, context, module_options):
7878
pass
79+
pass

0 commit comments

Comments
 (0)