mirror of
https://github.com/lgandx/Responder.git
synced 2025-07-07 13:31:23 -07:00
Update MSSQL.py to fix bug with single byte comparisons in python3
This commit is contained in:
parent
a205b58091
commit
728b100bfd
1 changed files with 2 additions and 2 deletions
|
@ -168,9 +168,9 @@ class MSSQLBrowser(BaseRequestHandler):
|
||||||
if data:
|
if data:
|
||||||
if data[0] in b'\x02\x03': # CLNT_BCAST_EX / CLNT_UCAST_EX
|
if data[0] in b'\x02\x03': # CLNT_BCAST_EX / CLNT_UCAST_EX
|
||||||
self.send_response(soc, "MSSQLSERVER")
|
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"))
|
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)
|
self.send_dac_response(soc)
|
||||||
|
|
||||||
def send_response(self, soc, inst):
|
def send_response(self, soc, inst):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue