mssqlclient.py ARCHETYPE/sql_svc:M3g4c0rp123@10.10.10.27 -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/mssqlclient.py”, 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/tds.py”, line 917, in login
tls.do_handshake()
File “/usr/local/lib/python3.8/dist-packages/OpenSSL/SSL.py”, line 1638, in do_handshake
self._raise_ssl_error(self._ssl, result)
File “/usr/local/lib/python3.8/dist-packages/OpenSSL/SSL.py”, line 1378, in _raise_ssl_error
_raise_current_error()
File “/usr/local/lib/python3.8/dist-packages/OpenSSL/_util.py”, 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’)]