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
commit add6224805
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)