From 7d8727b9dfd63afcd8685d9241c46a339bd9e073 Mon Sep 17 00:00:00 2001 From: ekultek Date: Sat, 18 Nov 2017 09:52:40 -0600 Subject: [PATCH] patch for an issue where it will claim the driver is not in your PATH, will now specify where the driver is located (issue #159) --- etc/checksum/md5sum.md5 | 4 ++-- lib/core/settings.py | 2 +- var/google_search/search.py | 5 +++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/etc/checksum/md5sum.md5 b/etc/checksum/md5sum.md5 index b6abe61..bda5a13 100644 --- a/etc/checksum/md5sum.md5 +++ b/etc/checksum/md5sum.md5 @@ -65,10 +65,10 @@ ceb1b278b0861c976dfecc91cb64e53d ./lib/attacks/xss_scan/__init__.py 94fb7c32f7db112f14a14297311d0aa3 ./lib/attacks/gist_lookup/__init__.py 1faa2b5dfad6eb538bbfe42942d2a9da ./lib/core/errors.py d41d8cd98f00b204e9800998ecf8427e ./lib/core/__init__.py -0ddbe1b7c52d6df3617ae091dfeb85a1 ./lib/core/settings.py +f14e59a7d0b25368fc6ef7efb7793d0b ./lib/core/settings.py f8dca2fa45acb95f7081546bf6aec025 ./lib/header_check/__init__.py d41d8cd98f00b204e9800998ecf8427e ./var/google_search/__init__.py -1c21d355668d4f503a1c4bc41b9f5124 ./var/google_search/search.py +a53336c939aa2756b0cf35563880bdd8 ./var/google_search/search.py d41d8cd98f00b204e9800998ecf8427e ./var/__init__.py d41d8cd98f00b204e9800998ecf8427e ./var/auto_issue/__init__.py 4c7c008b28eaac5afb57a4bea46f1b19 ./var/auto_issue/github.py diff --git a/lib/core/settings.py b/lib/core/settings.py index 3fab418..1a1489d 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -57,7 +57,7 @@ CLONE = "https://github.com/ekultek/zeus-scanner.git" ISSUE_LINK = "https://github.com/ekultek/zeus-scanner/issues" # current version -VERSION = "1.2.21.{}".format(PATCH_ID) +VERSION = "1.2.22.{}".format(PATCH_ID) # colors to output depending on the version VERSION_TYPE_COLORS = {"dev": 33, "stable": 92, "other": 30} diff --git a/var/google_search/search.py b/var/google_search/search.py index ea30539..6f81b04 100644 --- a/var/google_search/search.py +++ b/var/google_search/search.py @@ -22,7 +22,8 @@ from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.proxy import * from selenium.webdriver.remote.errorhandler import ( UnexpectedAlertPresentException, - ElementNotInteractableException + ElementNotInteractableException, + WebDriverException ) from var.auto_issue.github import request_issue_creation @@ -228,7 +229,7 @@ def get_urls(query, url, verbose=False, warning=True, **kwargs): )) profile = set_tor_browser_settings(profile, verbose=verbose, agent=user_agent, port=tor_port) browser = webdriver.Firefox(profile) - except OSError: + except (OSError, WebDriverException): if not tor: profile.set_preference("general.useragent.override", user_agent) browser = webdriver.Firefox(profile, proxy=proxy_to_use, executable_path=whichcraft.which("geckodriver"))