Closed A-AFTAHI closed 4 years ago
hi @A-AFTAHI
The "Name or service not known" error usually indicates that the Kali instance you are running cannot resolve the domain name in the URL you provided. This could happen for example if you are running in a virtual machine and networking is set to "host-only" or something similar.
Can you please provide for me the output of a dnslookup
for the domain you are trying to reach?
$ nslookup testdomain.com
Thanks! Pedro
Closing for now.
Let me know if this is still an issue.
Hi, I run droopescan a website for testing and i got the following error:
droopescan scan drupal -u https://www.website.ma (this is not the exact URL) Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/requests/packages/urllib3/connection.py", line 141, in _new_conn (self.host, self.port), self.timeout, **extra_kw) File "/usr/local/lib/python3.7/dist-packages/requests/packages/urllib3/util/connection.py", line 60, in create_connection for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/requests/packages/urllib3/connectionpool.py", line 600, in urlopen chunked=chunked) File "/usr/local/lib/python3.7/dist-packages/requests/packages/urllib3/connectionpool.py", line 345, in _make_request self._validate_conn(conn) File "/usr/local/lib/python3.7/dist-packages/requests/packages/urllib3/connectionpool.py", line 844, in _validate_conn conn.connect() File "/usr/local/lib/python3.7/dist-packages/requests/packages/urllib3/connection.py", line 284, in connect conn = self._new_conn() File "/usr/local/lib/python3.7/dist-packages/requests/packages/urllib3/connection.py", line 150, in _new_conn self, "Failed to establish a new connection: %s" % e) requests.packages.urllib3.exceptions.NewConnectionError: <requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f603c3a4860>: Failed to establish a new connection: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/requests/adapters.py", line 423, in send timeout=timeout File "/usr/local/lib/python3.7/dist-packages/requests/packages/urllib3/connectionpool.py", line 649, in urlopen _stacktrace=sys.exc_info()[2]) File "/usr/local/lib/python3.7/dist-packages/requests/packages/urllib3/util/retry.py", line 376, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) requests.packages.urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.website.ma ', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f603c3a4860>: Failed to establish a new connection: [Errno -2] Name or service not known'))
I run the test on a Kali Linux VM!