-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mssqlclient : 'SSL routines', 'state_machine', 'internal error' #856
Comments
same error ` python3 mssqlclient.py ARCHETYPE/sql_svc@10.10.10.27 -windows-auth Password: |
Yep I just got this too. I think its related to python 3.8. What is odd is both However, trying again after pulling a docker image with python 3.7 the impacket |
Also look into #866. I opened this issue on pyOpenSSL: pyca/pyopenssl#916 |
Hmm... I looked into the impacket/tds.py and I found this: |
on python 3.8.5 and ubuntu 20.04 I was able to fix this issue by changing the TLS context method to a newer version, the original code uses v1, and changing the following lines allows me to connect just fine:
qbit uses v1_2 in the linked issue above |
I've been having the same issue. I'll include a wireshark capture if anyone want's to check it out. If you can see what's going on please get back to me.x-special/nautilus-clipboard |
Running Ubuntu 21.04, python 3.9 I followed this method and modified /usr/local/lib/python3.9/dist-packages/impacket-0.9.23-py3.9.egg/impacket/tds.py replaced ctx = SSL.Context(SSL.TLSv1_METHOD) with ctx = SSL.Context(SSL.TLSv1_2_METHOD) both at line 911 & 663 and now mssqlclient.py works |
Same problem for me : Impacket v0.9.25.dev1+20211027.123255.1dad8f7f |
This worked for me, too. Thanks! |
Had to rerun |
same with impacket-0.9.25.dev1+20220218.140931.6042675a the changes in file |
this worked for me aswell. In my case i manually edited my user-installed lib ~/.local/lib/python3.8/site-packages/impacket.tds.py |
Okay, thanks to @H00K the solution seems to be pretty simple PR: #1356
|
Should be fixed in #1364. Please re-open if needed. |
I've been struggling with this for weeks and this fixed it right away, only difference was I found mine on line 666 and 914. Thanks again! |
running |
I have this issue,
Impacket version == "Impacket v0.9.22.dev1+20200513.101403.9a4b3f52 - Copyright 2020 SecureAuth Corporation"
with debug
The text was updated successfully, but these errors were encountered: