fix(smb): --users display off by one :)

main
Marshall Hallenbeck 2024-03-21 20:16:43 -04:00
parent e5bba812e8
commit b0ec4b7951
1 changed files with 1 additions and 1 deletions

View File

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