Skip to content
This repository was archived by the owner on Dec 6, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cme/protocols/mssql.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def plaintext_login(self, domain, username, password):
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
Expand Down Expand Up @@ -213,7 +213,7 @@ def hash_login(self, domain, username, ntlm_hash):
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
Expand Down