FOCUS HERE > STARTING POINT OpenSSL.SSL.Error: [('SSL routines', 'state_machine', 'internal error')] ARCHETYPE/sql_svc:M3g4c0rp123@ -windows-auth -debug
Impacket v0.9.21 - Copyright 2020 SecureAuth Corporation

[+] Impacket Library Installation Path: /usr/local/lib/python3.8/dist-packages/impacket
[*] Encryption required, switching to TLS
[+] Exception:
Traceback (most recent call last):
File “/usr/local/bin/”, line 179, in
res = ms_sql.login(options.db, username, password, domain, options.hashes, options.windows_auth)
File “/usr/local/lib/python3.8/dist-packages/impacket/”, line 917, in login
File “/usr/local/lib/python3.8/dist-packages/OpenSSL/”, line 1638, in do_handshake
self._raise_ssl_error(self._ssl, result)
File “/usr/local/lib/python3.8/dist-packages/OpenSSL/”, line 1378, in _raise_ssl_error
File “/usr/local/lib/python3.8/dist-packages/OpenSSL/”, line 54, in exception_from_error_queue
raise exception_type(errors)
OpenSSL.SSL.Error: [(‘SSL routines’, ‘state_machine’, ‘internal error’)]
[-] [(‘SSL routines’, ‘state_machine’, ‘internal error’)]

i’m also facing same error

OpenSSL is an open-source software library that provides encryption and cryptographic functions. If you encounter an OpenSSL error, here are some tips to fix it:

Check for updates: Make sure that you have the latest version of OpenSSL installed. Check for updates and install them if available.

Restart your computer: Sometimes, simply restarting your computer can fix OpenSSL errors. This can help refresh your system and resolve any temporary issues.

Check your OpenSSL configuration: Make sure that your OpenSSL configuration is correct. Check your OpenSSL configuration file and ensure that it is configured properly.

Rachel Gomez