We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a6b4c7 commit e2e70a7Copy full SHA for e2e70a7
1 file changed
nxc/connection.py
@@ -416,14 +416,14 @@ def parse_credentials(self):
416
with open(ntlm_hash) as ntlm_hash_file:
417
for i, line in enumerate(ntlm_hash_file):
418
line = line.strip()
419
- if len(line) != 32 and len(line) != 65:
+ if len(line) != 32 and len(line) != 65 and len(line) != 0:
420
self.logger.fail(f"Invalid NTLM hash length on line {(i + 1)} (len {len(line)}): {line}")
421
continue
422
else:
423
secret.append(line)
424
cred_type.append("hash")
425
426
- if len(ntlm_hash) != 32 and len(ntlm_hash) != 65:
+ if len(ntlm_hash) != 32 and len(ntlm_hash) != 65 and len(ntlm_hash) != 0:
427
self.logger.fail(f"Invalid NTLM hash length {len(ntlm_hash)}, authentication not sent")
428
exit(1)
429
0 commit comments