Closed sajjadmd closed 1 year ago
@sajjadmd I had the same problem yesterday
@sajjadmd Here's a potential solution to handle the DNS resolution failure in dirsearch:
1 u update this tool 🔥 okay
@sajjadmd And if this problem is not solved even after doing all this, then you will tell me.
@sajjadmd And if you can, then install this tool and reinstall it because I was also having the same problem, but I tried many solutions, but nothing happened. so i reinstalled this tool in my system
@Prady18 It's working or not.
@sajjadmd yes
@sajjadmd any update buddy 😀
This bug was fixed, try installing the latest one from Github.
The present behavior of dirsearch is such that when scanning a list of URLs, if one of the URLs encounters an issue where the host cannot be resolved (commonly known as DNS resolution failure), the dirsearch tool crashes.
Traceback (most recent call last): File "/usr/lib/python3/dist-packages/dirsearch/lib/connection/requester.py", line 83, in init self.ip = socket.gethostbyname(self.host) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ socket.gaierror: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/lib/python3/dist-packages/dirsearch/dirsearch.py", line 48, in
main = Program()
^^^^^^^^^
File "/usr/lib/python3/dist-packages/dirsearch/dirsearch.py", line 44, in init
self.controller = Controller(self.script_path, self.arguments, self.output)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/dirsearch/lib/controller/controller.py", line 217, in init
self.requester = Requester(
^^^^^^^^^^
File "/usr/lib/python3/dist-packages/dirsearch/lib/connection/requester.py", line 87, in init
self.ip = socket.gethostbyname(self.host, None, socket.AF_INET6)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: gethostbyname() takes exactly 1 argument (3 given)