[MSSQL] Fix regression: Connection establishment #2005
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit broke
mssqlclient.py
for me: a60a1f1With the commit a connection to a Microsoft SQL Server 2012 is not possible anymore, during connection establishment (TLS client hello) the server does not respond. The only difference between the packets in the old impacket version I tested ( abfaea2 ) and the commit above is that a tlsv1 client hello is now used, wheres before it was a tlsv1.2 client hello.
This commit reintroduces the explicit setting of the ciphers, which seems to fix this. I am not sure if this is platform dependent which TLS record layer is used, I am testing on Debian 12 with Python 3.11.2 and OpenSSL 3.0.16-1~deb12u1.