mirror of
https://github.com/Ekultek/Zeus-Scanner.git
synced 2026-03-11 08:55:51 +00:00
will only display the headers that are equipped for protection and will no longer prompt you if you want to continue, a warning should be enough, fixed a new line issue in an inof message
This commit is contained in:
parent
33ac2f961a
commit
3db01c4dcf
1 changed files with 1 additions and 5 deletions
|
|
@ -89,7 +89,7 @@ def main_header_check(url, **kwargs):
|
|||
))
|
||||
comparable_headers = load_xml_data(HEADER_XML_DATA)
|
||||
logger.info(set_color(
|
||||
"attempting to get request headers for '{}'...".format(url)
|
||||
"attempting to get request headers for '{}'...".format(url.strip())
|
||||
))
|
||||
found_headers = load_headers(url, proxy=proxy, agent=agent, xforward=xforward)
|
||||
if verbose:
|
||||
|
|
@ -102,10 +102,6 @@ def main_header_check(url, **kwargs):
|
|||
logger.warning(set_color(
|
||||
"provided target has {}...".format(definition[key][0]), level=30
|
||||
))
|
||||
else:
|
||||
logger.info(set_color(
|
||||
"provided target does not have {}...".format(definition[key][0])
|
||||
))
|
||||
for key in found_headers.iterkeys():
|
||||
protection[key] = found_headers[key]
|
||||
return write_to_log_file(protection, HEADER_RESULT_PATH, "{}-headers.json".format(replace_http(url)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue