From b52f301358f3e5ede63fcb9302c824e387df1aaa Mon Sep 17 00:00:00 2001 From: ekultek Date: Sat, 7 Oct 2017 09:34:03 -0500 Subject: [PATCH] branch issue fix #1 --- lib/attacks/intel_me/__init__.py | 2 +- lib/settings.py | 9 ++++++--- var/google_search/search.py | 2 ++ 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/attacks/intel_me/__init__.py b/lib/attacks/intel_me/__init__.py index 0c5d811..66c319d 100644 --- a/lib/attacks/intel_me/__init__.py +++ b/lib/attacks/intel_me/__init__.py @@ -14,7 +14,7 @@ from lib.settings import ( def __get_auth_headers(target, port=16992, source=None, agent=None, proxy=None): if not source or 'WWW-Authenticate' not in source.headers['WWW-Authenticate']: - logger.info(set_color or ( + logger.info(set_color( "header value not established, attempting to get bypass..." )) source = requests.get("http://{0}:{1}/index.htm".format(target, port), headers={ diff --git a/lib/settings.py b/lib/settings.py index 54ce538..c717ea2 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.30.133a" +VERSION = "1.0.31" # colors to output depending on the version VERSION_TYPE_COLORS = {"dev": 33, "stable": 92, "other": 30} # version string formatting @@ -239,8 +239,11 @@ def get_latest_log_file(log_path): get the latest log file being used from the given path """ file_list = glob.glob(log_path + "/*") - latest = max(file_list, key=os.path.getctime) - return latest + try: + latest = max(file_list, key=os.path.getctime) + return latest + except ValueError: + return None def replace_http(url): diff --git a/var/google_search/search.py b/var/google_search/search.py index d003ded..b4c30a1 100644 --- a/var/google_search/search.py +++ b/var/google_search/search.py @@ -18,6 +18,7 @@ from pyvirtualdisplay import Display from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.proxy import * +from var.auto_issue.github import request_issue_creation from lib.settings import ( logger, set_color, @@ -251,6 +252,7 @@ def parse_search_results( "exception has been logged to current log file...".format( os.path.basename(__file__), str(e).strip()), level=50) ) + request_issue_creation() shutdown() logger.info(set_color( "URL successfully gathered, searching for GET parameters..."