Fix usernames with empty spaces in ntds dump

main
Alexander Neff 2023-12-22 17:42:58 +01:00
parent 8899c003c8
commit 694f6a0984
1 changed files with 2 additions and 2 deletions

View File

@ -1690,10 +1690,10 @@ class smb(connection):
add_ntds_hash.ntds_hashes += 1
if self.args.enabled:
if "Enabled" in ntds_hash:
ntds_hash = ntds_hash.split(" ")[0]
ntds_hash = " ".join(ntds_hash.split(" ")[:-1])
self.logger.highlight(ntds_hash)
else:
ntds_hash = ntds_hash.split(" ")[0]
ntds_hash = " ".join(ntds_hash.split(" ")[:-1])
self.logger.highlight(ntds_hash)
if ntds_hash.find("$") == -1:
if ntds_hash.find("\\") != -1: