I am getting this error what do I need to do to fix this
Impacket
Password:
Traceback (most recent call last):
File “/home/eggz/impacket/examples/mssqlclient.py”, line 84, in
ms_sql.connect()
File “/home/eggz/.local/lib/python3.9/site-packages/impacket/tds.py”, line 533, in connect
af, socktype, proto, canonname, sa = socket.getaddrinfo(self.server, self.port, 0, socket.SOCK_STREAM)[0]
File “/usr/lib/python3.9/socket.py”, line 953, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known
└─$ python3 mssqlclient.py ARCHETYPE/sql_svc@{10.129.193.52} -windows-auth
Impacket v0.11.0 - Copyright 2023 Fortra
Password:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/impacket/examples/mssqlclient.py", line 84, in <module>
ms_sql.connect()
File "/usr/lib/python3/dist-packages/impacket/tds.py", line 533, in connect
af, socktype, proto, canonname, sa = socket.getaddrinfo(self.server, self.port, 0, socket.SOCK_STREAM)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/socket.py", line 962, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socket.gaierror: [Errno -2] Name or service not known
I am using running this from this directory.
lib/python3/dist-packages/impacket/examples
I git cloned the forta/impacket repo then copied the repo’s examples to my local folder since kali installed impacket there, but didn’t provide the script that was called for.