Skip to content

Commit

Permalink
will only display the headers that are equipped for protection and wi…
Browse files Browse the repository at this point in the history
…ll no longer prompt you if you want to continue, a warning should be enough, fixed a new line issue in an inof message
  • Loading branch information
ekultek committed Nov 10, 2017
1 parent 33ac2f9 commit 3db01c4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/header_check/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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)))

0 comments on commit 3db01c4

Please sign in to comment.