From 27fe53817d66797e6537040e0083fc5d2b457994 Mon Sep 17 00:00:00 2001 From: ekultek Date: Wed, 6 Dec 2017 09:34:49 -0600 Subject: [PATCH] patch for issue #229 when the URL times out it will now continue the process --- lib/attacks/admin_panel_finder/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/attacks/admin_panel_finder/__init__.py b/lib/attacks/admin_panel_finder/__init__.py index bb84599..50cae81 100644 --- a/lib/attacks/admin_panel_finder/__init__.py +++ b/lib/attacks/admin_panel_finder/__init__.py @@ -9,7 +9,8 @@ except ImportError: # Python 3 from requests.exceptions import ( ConnectionError, - TooManyRedirects + TooManyRedirects, + ReadTimeout ) import lib.core.common @@ -41,7 +42,7 @@ def check_for_externals(url, data_sep="-" * 30, **kwargs): url = lib.core.settings.replace_http(url) full_url = "{}{}{}".format("http://", url, currently_searching) _, code, data, _ = lib.core.common.get_page(full_url) - except (TooManyRedirects, ConnectionError): + except (TooManyRedirects, ConnectionError, ReadTimeout): lib.core.settings.logger.error(lib.core.settings.set_color( "connection to '{}' failed, assuming does not exist and continuing...".format(full_url), level=40 ))