fixed a TypeError in MSSQLBrowser

fixes #251
This commit is contained in:
exploide 2024-01-04 15:26:26 +01:00
parent 4ea3d7b765
commit 20cdd9c7c2

2
servers/MSSQL.py Executable file → Normal file
View file

@ -169,7 +169,7 @@ class MSSQLBrowser(BaseRequestHandler):
if data[0] in b'\x02\x03': # CLNT_BCAST_EX / CLNT_UCAST_EX
self.send_response(soc, "MSSQLSERVER")
elif data[0:1] == b'\x04': # CLNT_UCAST_INST
self.send_response(soc, data[1:].rstrip("\x00"))
self.send_response(soc, data[1:].rstrip(b"\x00"))
elif data[0:1] == b'\x0F': # CLNT_UCAST_DAC
self.send_dac_response(soc)