Skip to content

Commit

Permalink
Merge pull request #343 from Anhydrite/main
Browse files Browse the repository at this point in the history
  • Loading branch information
NeffIsBack authored Jun 11, 2024
2 parents c956dba + 5f79c17 commit e4ca4f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion nxc/protocols/ldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ def users(self):

users = parse_result_attributes(resp)
# we print the total records after we parse the results since often SearchResultReferences are returned
self.logger.display(f"Total records returned: {len(users):d}")
self.logger.display(f"Enumerated {len(users):d} domain users: {self.domain}")
self.logger.highlight(f"{'-Username-':<30}{'-Last PW Set-':<20}{'-BadPW-':<8}{'-Description-':<60}")
for user in users:
# TODO: functionize this - we do this calculation in a bunch of places, different, including in the `pso` module
Expand Down
1 change: 1 addition & 0 deletions nxc/protocols/smb/samruser.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ def get_user_info(self, domain_handle, user_ids):
return users

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

0 comments on commit e4ca4f9

Please sign in to comment.