From 728b100bfd842fc0c8a4193d9100f0510967c12c Mon Sep 17 00:00:00 2001 From: nobbd Date: Tue, 15 Aug 2023 15:15:23 +0200 Subject: [PATCH] Update MSSQL.py to fix bug with single byte comparisons in python3 --- servers/MSSQL.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/MSSQL.py b/servers/MSSQL.py index ed2b440..ce53f12 100755 --- a/servers/MSSQL.py +++ b/servers/MSSQL.py @@ -168,9 +168,9 @@ class MSSQLBrowser(BaseRequestHandler): if data: if data[0] in b'\x02\x03': # CLNT_BCAST_EX / CLNT_UCAST_EX self.send_response(soc, "MSSQLSERVER") - elif data[0] == b'\x04': # CLNT_UCAST_INST + elif data[0:1] == b'\x04': # CLNT_UCAST_INST self.send_response(soc, data[1:].rstrip("\x00")) - elif data[0] == b'\x0F': # CLNT_UCAST_DAC + elif data[0:1] == b'\x0F': # CLNT_UCAST_DAC self.send_dac_response(soc) def send_response(self, soc, inst):