Merge pull request #658 from Porchetta-Industries/mssql-uaht

Fix regression for mssql with local_auth thx @juliourena
main
mpgn 2022-10-24 21:26:55 +02:00 committed by GitHub
commit 87108d4878
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -166,7 +166,7 @@ class mssql(connection):
self.create_conn_obj()
try:
res = self.conn.login(None, username, password, domain, None, True)
res = self.conn.login(None, username, password, domain, None, not self.args.local_auth)
if res is not True:
self.conn.printReplies()
return False
@ -213,7 +213,7 @@ class mssql(connection):
self.create_conn_obj()
try:
res = self.conn.login(None, username, '', domain, ':' + nthash if not lmhash else ntlm_hash, True)
res = self.conn.login(None, username, '', domain, ':' + nthash if not lmhash else ntlm_hash, not self.args.local_auth)
if res is not True:
self.conn.printReplies()
return False