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)

This commit is contained in:
ekultek 2017-11-18 09:52:40 -06:00
parent b59754adae
commit 7d8727b9df
3 changed files with 6 additions and 5 deletions

View file

@ -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

View file

@ -57,7 +57,7 @@ CLONE = "https://github.com/ekultek/zeus-scanner.git"
ISSUE_LINK = "https://github.com/ekultek/zeus-scanner/issues"
# current version <major.minor.commit.patch ID>
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}

View file

@ -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"))