maurosoria / dirsearch

Web path scanner
11.93k stars 2.31k forks source link

TypeError: gethostbyname() takes exactly 1 argument (3 given) #1301

Closed G6KG closed 1 year ago

G6KG commented 1 year ago

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 -2] Name or service not known

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)

shelld3v commented 1 year ago

You are using an old version of dirsearch