Skip to content

Commit 64ccbbb

Browse files
committed
Formatting
1 parent bfada64 commit 64ccbbb

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

nxc/modules/gpp_privileges.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ def on_login(self, context, connection):
101101
shares = connection.shares()
102102
for share in shares:
103103
if share["name"] == "SYSVOL" and "READ" in share["access"]:
104-
context.log.info("Found SYSVOL share")
105104
context.log.display("Searching for GptTmpl.inf files")
106105

107106
paths = connection.spider("SYSVOL", pattern=["GptTmpl.inf"])
@@ -133,9 +132,7 @@ def on_login(self, context, connection):
133132

134133
context.log.success(f"Privileges extracted from {path}:")
135134
for privilege, sids in privileges.items():
136-
resolved_sids = [
137-
self.resolve_sid(context, sid, ldap_connection) for sid in sids
138-
]
135+
resolved_sids = [self.resolve_sid(context, sid, ldap_connection) for sid in sids]
139136
context.log.highlight(f"{privilege}: {', '.join(resolved_sids)}")
140137

141138
if ldap_connection:

0 commit comments

Comments
 (0)