change extra output to debug statement

main
Marshall Hallenbeck 2024-03-21 20:45:39 -04:00
parent e870a30416
commit 40e99913e3
2 changed files with 3 additions and 5 deletions

View File

@ -765,10 +765,10 @@ class ldap(connection):
None
"""
if len(self.args.users) > 0:
self.logger.display(f"Trying to dumping users: {', '.join(self.args.users)}")
self.logger.debug(f"Dumping users: {', '.join(self.args.users)}")
search_filter = f"(|{''.join(f'(sAMAccountName={user})' for user in self.args.users)})"
else:
self.logger.info("Trying to dump all users")
self.logger.debug("Trying to dump all users")
search_filter = "(sAMAccountType=805306368)" if self.username != "" else "(objectclass=*)"
# default to these attributes to mirror the SMB --users functionality

View File

@ -1001,9 +1001,7 @@ class smb(connection):
def users(self):
if len(self.args.users) > 0:
self.logger.display(f"Dumping users: {', '.join(self.args.users)}")
else:
self.logger.info("Trying to dump local users with SAMRPC protocol")
self.logger.debug(f"Dumping users: {', '.join(self.args.users)}")
return UserSamrDump(self).dump(self.args.users)