mpgn 2022-01-04 05:23:34 -05:00
commit eec9dfe49f
1 changed files with 2 additions and 2 deletions

View File

@ -215,7 +215,7 @@ class connection(object):
if self.hash_login(self.domain, usr.strip(), f_hash.strip()): return True if self.hash_login(self.domain, usr.strip(), f_hash.strip()): return True
else: # ntlm_hash is a string else: # ntlm_hash is a string
if not self.over_fail_limit(usr.strip()): if not self.over_fail_limit(usr.strip()):
if self.hash_login(self.domain, usr.strip(), ntlm_hash_file): return True if self.hash_login(self.domain, usr.strip(), ntlm_hash.strip()): return True
elif self.args.password: elif self.args.password:
with sem: with sem:
@ -255,7 +255,7 @@ class connection(object):
if self.hash_login(self.domain, user, f_hash.strip()): return True if self.hash_login(self.domain, user, f_hash.strip()): return True
else: # ntlm_hash is a string else: # ntlm_hash is a string
if not self.over_fail_limit(user): if not self.over_fail_limit(user):
if self.hash_login(self.domain, user, ntlm_hash): return True if self.hash_login(self.domain, user, ntlm_hash.strip()): return True
elif self.args.password: elif self.args.password:
with sem: with sem: