mirror of
https://github.com/Ekultek/Zeus-Scanner.git
synced 2026-03-11 08:55:51 +00:00
branch issue fix #1
This commit is contained in:
parent
671e77b984
commit
b52f301358
3 changed files with 9 additions and 4 deletions
|
|
@ -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={
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ except NameError:
|
|||
# clone link
|
||||
CLONE = "https://github.com/ekultek/zeus-scanner.git"
|
||||
# current version <major.minor.commit.patch ID>
|
||||
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):
|
||||
|
|
|
|||
|
|
@ -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..."
|
||||
|
|
|
|||
Loading…
Reference in a new issue