Fix winrm uninitialized variable and hash auth option
parent
71faa5c075
commit
1aa2f8cc0f
|
@ -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:
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue