Merge pull request #265 from exploide/mssql-browser-typeerror

Fixed a TypeError in MSSQLBrowser
This commit is contained in:
lgandx
2024-01-04 17:19:58 -03:00
committed by GitHub

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)