Skip to content

Commit 804aeb0

Browse files
committed
Remove unused variable and add no_ntlm
1 parent 4cb4978 commit 804aeb0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

nxc/protocols/mssql.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def __init__(self, args, db, host):
4343
self.os_arch = None
4444
self.lmhash = ""
4545
self.nthash = ""
46-
self.is_mssql = False
46+
self.no_ntlm = False
4747

4848
connection.__init__(self, args, db, host)
4949

@@ -67,7 +67,6 @@ def create_conn_obj(self):
6767
self.conn.disconnect()
6868
return False
6969
else:
70-
self.is_mssql = True
7170
return True
7271

7372
def reconnect_mssql(func):
@@ -146,7 +145,8 @@ def enum_host_info(self):
146145
else:
147146
error_msg = login7_integrated_auth_error_message(login_response, challenge)
148147
detail = f": {error_msg}" if error_msg else ""
149-
self.logger.fail(f"Server does not support Integrated Windows Authentication{detail}")
148+
self.logger.debug(f"Server does not support NTLM{detail}")
149+
self.no_ntlm = True
150150

151151
self.db.add_host(self.host, self.hostname, self.domain, self.server_os, len(self.mssql_instances))
152152

0 commit comments

Comments
 (0)