From 4ba8a8a0f4ef83cc418f5eb61d0ca9dbb59664ac Mon Sep 17 00:00:00 2001 From: ekultek Date: Tue, 26 Sep 2017 18:30:50 -0500 Subject: [PATCH] close the display and browser after exception has been caught --- lib/settings.py | 2 +- var/google_search/search.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/settings.py b/lib/settings.py index 2747c42..193fa63 100644 --- a/lib/settings.py +++ b/lib/settings.py @@ -22,7 +22,7 @@ except NameError: # clone link CLONE = "https://github.com/ekultek/zeus-scanner.git" # current version -VERSION = "1.0.18.94c6" +VERSION = "1.0.18.7db8" # colors to output depending on the version VERSION_TYPE_COLORS = {"dev": 33, "stable": 92, "other": 30} # version string formatting diff --git a/var/google_search/search.py b/var/google_search/search.py index a5c0a36..b68c703 100644 --- a/var/google_search/search.py +++ b/var/google_search/search.py @@ -125,9 +125,11 @@ def get_urls(query, url, verbose=False, warning=True, user_agent=None, proxy=Non try: retval = bypass_ip_block(retval) except IndexError: + browser.close() # stop all the random rogue processes + ff_display.stop() logger.warning(set_color( "for now the IP ban bypass will only work for queries that have Google's search syntax " - "in them. (IE inurl:, incontext:, incontent:)" + "in them. (IE inurl:, incontext:, incontent:)", level=30 )) raise NotImplementedError( "bypass for query '{}' is not implemented yet, try again with a different dork, "