Type your comment> @gnothiseauton said:
@quantumtheory said:
I restarted my system and I still get the same error(s)
python3 mssqlclient.py ARCHETYPE/sql_svc@10.10.10.27 -windows-auth
Impacket v0.9.20 - Copyright 2019 SecureAuth Corporation
Password: M3g4c0rp123
[*] Encryption required, switching to TLS
[-] Missing required parameter ‘digestmod’.
you probably downloaded impacket, but didn’t install it. On kali 2020.1b there’s the ‘problem’ that pip isn’t installed, but pip3 is… so where it says in the github “pip install .”, do in stead “pip3 install .”… normally this should fix your problem.
I have run python scripts before, therefore I was confident everything was installed correctly. However, I did have to install python3-pip…
With that said, I now get this error:
kali@kali:~/Downloads/Impacket$ sudo pip3 install setup.py
[sudo] password for kali:
ERROR: Could not find a version that satisfies the requirement setup.py (from versions: none)
ERROR: No matching distribution found for setup.py
So instead, I enter command “python3 setup.py install”
and it seems to have installed everything in /usr/local.bin… However it is still not working.
I enter the command “mssqlclient.py ARCHETYPE/sql_svc@10.10.10.27 -windows-auth”
I am then asked for the password. I type the password in, and nothing happens.
Just a solid cursor for a few minutes and then I get this:
Traceback (most recent call last):
File “/usr/local/bin/mssqlclient.py”, line 4, in
import(‘pkg_resources’).run_script(‘impacket==0.9.22.dev1’, ‘mssqlclient.py’)
File “/usr/lib/python3/dist-packages/pkg_resources/init.py”, line 666, in run_script
self.require(requires)[0].run_script(script_name, ns)
File “/usr/lib/python3/dist-packages/pkg_resources/init.py”, line 1462, in run_script
exec(code, namespace, namespace)
File “/usr/local/lib/python3.8/dist-packages/impacket-0.9.22.dev1-py3.8.egg/EGG-INFO/scripts/mssqlclient.py”, line 173, in
ms_sql.connect()
File “/usr/local/lib/python3.8/dist-packages/impacket-0.9.22.dev1-py3.8.egg/impacket/tds.py”, line 532, in connect
sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out