Skip to content

Commit 3db01c4

Browse files
author
ekultek
committed
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
1 parent 33ac2f9 commit 3db01c4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/header_check/__init__.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def main_header_check(url, **kwargs):
8989
))
9090
comparable_headers = load_xml_data(HEADER_XML_DATA)
9191
logger.info(set_color(
92-
"attempting to get request headers for '{}'...".format(url)
92+
"attempting to get request headers for '{}'...".format(url.strip())
9393
))
9494
found_headers = load_headers(url, proxy=proxy, agent=agent, xforward=xforward)
9595
if verbose:
@@ -102,10 +102,6 @@ def main_header_check(url, **kwargs):
102102
logger.warning(set_color(
103103
"provided target has {}...".format(definition[key][0]), level=30
104104
))
105-
else:
106-
logger.info(set_color(
107-
"provided target does not have {}...".format(definition[key][0])
108-
))
109105
for key in found_headers.iterkeys():
110106
protection[key] = found_headers[key]
111107
return write_to_log_file(protection, HEADER_RESULT_PATH, "{}-headers.json".format(replace_http(url)))

0 commit comments

Comments
 (0)