Fix winrm uninitialized variable and hash auth option

main
mpgn 2020-07-28 10:16:06 -04:00
parent 71faa5c075
commit 1aa2f8cc0f
2 changed files with 3 additions and 2 deletions

View File

@ -196,9 +196,9 @@ class connection(object):
elif not isinstance(ntlm_hash, str) and isfile(ntlm_hash.name) and self.args.no_bruteforce == True:
user.seek(0)
for usr, f_pass in zip(user, ntlm_hash):
for usr, f_hash in zip(user, ntlm_hash):
if not self.over_fail_limit(usr.strip()):
if self.plaintext_login(self.domain, usr.strip(), f_hash.strip()): return True
if self.hash_login(self.domain, usr.strip(), f_hash.strip()): return True
elif self.args.password:
with sem:

View File

@ -22,6 +22,7 @@ class winrm(connection):
def __init__(self, args, db, host):
self.domain = None
self.server_os = None
connection.__init__(self, args, db, host)