lgandx / Responder

Responder is a LLMNR, NBT-NS and MDNS poisoner, with built-in HTTP/SMB/MSSQL/FTP/LDAP rogue authentication server supporting NTLMv1/NTLMv2/LMv2, Extended Security NTLMSSP and Basic HTTP authentication.
GNU General Public License v3.0
5.39k stars 768 forks source link

Error parsing IPv6 in MSSQL server #251

Closed firefart closed 9 months ago

firefart commented 1 year ago
Exception occurred during processing of request from ('::ffff:10.10.10.10', 63028, 0, 0)
Traceback (most recent call last):
  File "/usr/lib/python3.11/socketserver.py", line 691, in process_request_thread
    self.finish_request(request, client_address)
  File "/usr/lib/python3.11/socketserver.py", line 361, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python3.11/socketserver.py", line 755, in __init__
    self.handle()
  File "/home/firefart/Responder/servers/MSSQL.py", line 172, in handle
    self.send_response(soc, data[1:].rstrip("\x00"))
                            ^^^^^^^^^^^^^^^^^^^^^^^
TypeError: a bytes-like object is required, not 'str'

Similar to https://github.com/lgandx/Responder/issues/223

exploide commented 9 months ago

Fixed this in #265.