Skip to content

Commit e4ca4f9

Browse files
authored
Merge pull request Pennyw0rth#343 from Anhydrite/main
2 parents c956dba + 5f79c17 commit e4ca4f9

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

nxc/protocols/ldap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ def users(self):
752752

753753
users = parse_result_attributes(resp)
754754
# we print the total records after we parse the results since often SearchResultReferences are returned
755-
self.logger.display(f"Total records returned: {len(users):d}")
755+
self.logger.display(f"Enumerated {len(users):d} domain users: {self.domain}")
756756
self.logger.highlight(f"{'-Username-':<30}{'-Last PW Set-':<20}{'-BadPW-':<8}{'-Description-':<60}")
757757
for user in users:
758758
# TODO: functionize this - we do this calculation in a bunch of places, different, including in the `pso` module

nxc/protocols/smb/samruser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ def get_user_info(self, domain_handle, user_ids):
166166
return users
167167

168168
def print_user_info(self, users):
169+
self.logger.display(f"Enumerated {len(users):d} local users")
169170
self.logger.highlight(f"{'-Username-':<30}{'-Last PW Set-':<20}{'-BadPW-':<8}{'-Description-':<60}")
170171
for user in users:
171172
self.logger.debug(f"Full user info: {user}")

0 commit comments

Comments
 (0)