Fix winrm login failed

main
Dliv3 2021-11-09 20:19:06 +08:00
parent 6036782ccd
commit a4c7680fc6
1 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ class winrm(connection):
log.addFilter(SuppressFilter())
self.conn = Client(self.host,
auth='ntlm',
username=username,
username=u'{}\\{}'.format(domain, username),
password=password,
ssl=False)
@ -182,7 +182,7 @@ class winrm(connection):
if nthash: self.nthash = nthash
self.conn = Client(self.host,
auth='ntlm',
username=username,
username=u'{}\\{}'.format(domain, username),
password=ntlm_hash,
ssl=False)