patch for an issue where something goes wrong with the user-agent configuration during intialization of selenium, will not default to Zeus's custom agent if for any reason the user-agent is None (issue #170)

This commit is contained in:
ekultek 2017-11-26 12:02:23 -06:00
parent 46cb3d64d0
commit d03d762ff4
3 changed files with 6 additions and 5 deletions

View file

@ -71,8 +71,8 @@ e11185d7dd3d6c94d7f4ddbcfd1d26cc ./lib/header_check/__init__.py
45fc5f5847a3a9909cbd5e0add7b4586 ./lib/core/common.py
1faa2b5dfad6eb538bbfe42942d2a9da ./lib/core/errors.py
d41d8cd98f00b204e9800998ecf8427e ./lib/core/__init__.py
e85aeb86ed1e341c65d3916e80e264f0 ./lib/core/settings.py
9989b7122c79a4cd38be1e00adab5187 ./var/search/__init__.py
086bf2b15a72771d87ba4bc8c52e2827 ./lib/core/settings.py
a2ff723e08c865330249c484cdf91e66 ./var/search/__init__.py
cd16c7e4eb550b2c8531dee993eb4c2a ./var/search/selenium_search.py
63ba132381a0cc2d7629852bd5e4aa17 ./var/search/pgp_search.py
d41d8cd98f00b204e9800998ecf8427e ./var/__init__.py

View file

@ -46,7 +46,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.36".format(PATCH_ID)
VERSION = "1.2.37.{}".format(PATCH_ID)
# colors to output depending on the version
VERSION_TYPE_COLORS = {"dev": 33, "stable": 92, "other": 30}

View file

@ -5,7 +5,8 @@ from selenium.webdriver.remote.errorhandler import WebDriverException
from lib.core.settings import (
logger,
set_color
set_color,
DEFAULT_USER_AGENT
)
@ -16,7 +17,7 @@ class SetBrowser(object):
"""
def __init__(self, **kwargs):
self.agent = kwargs.get("agent", None)
self.agent = kwargs.get("agent", DEFAULT_USER_AGENT)
self.proxy = kwargs.get("proxy", None)
# self.xforward = kwargs.get("xforward", False) # TODO:/
self.tor = kwargs.get("tor", False)