change extra output to debug statement
parent
e870a30416
commit
40e99913e3
|
@ -765,10 +765,10 @@ class ldap(connection):
|
||||||
None
|
None
|
||||||
"""
|
"""
|
||||||
if len(self.args.users) > 0:
|
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)})"
|
search_filter = f"(|{''.join(f'(sAMAccountName={user})' for user in self.args.users)})"
|
||||||
else:
|
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=*)"
|
search_filter = "(sAMAccountType=805306368)" if self.username != "" else "(objectclass=*)"
|
||||||
|
|
||||||
# default to these attributes to mirror the SMB --users functionality
|
# default to these attributes to mirror the SMB --users functionality
|
||||||
|
|
|
@ -1001,9 +1001,7 @@ class smb(connection):
|
||||||
|
|
||||||
def users(self):
|
def users(self):
|
||||||
if len(self.args.users) > 0:
|
if len(self.args.users) > 0:
|
||||||
self.logger.display(f"Dumping users: {', '.join(self.args.users)}")
|
self.logger.debug(f"Dumping users: {', '.join(self.args.users)}")
|
||||||
else:
|
|
||||||
self.logger.info("Trying to dump local users with SAMRPC protocol")
|
|
||||||
|
|
||||||
return UserSamrDump(self).dump(self.args.users)
|
return UserSamrDump(self).dump(self.args.users)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue