maurosoria / dirsearch

Web path scanner
11.93k stars 2.31k forks source link

Host can't be resolved. #1311

Closed sajjadmd closed 1 year ago

sajjadmd commented 1 year ago

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)

Prady18 commented 1 year ago

@sajjadmd I had the same problem yesterday

Prady18 commented 1 year ago

@sajjadmd Here's a potential solution to handle the DNS resolution failure in dirsearch:
1 u update this tool 🔥 okay

Prady18 commented 1 year ago

@sajjadmd And if this problem is not solved even after doing all this, then you will tell me.

Prady18 commented 1 year ago

@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

sajjadmd commented 1 year ago

@Prady18 It's working or not.

Prady18 commented 1 year ago

@sajjadmd yes

Prady18 commented 1 year ago

@sajjadmd any update buddy 😀

shelld3v commented 1 year ago

This bug was fixed, try installing the latest one from Github.