diff --git a/nw_log4jcheck.py b/nw_log4jcheck.py index e149da2..ea31f59 100644 --- a/nw_log4jcheck.py +++ b/nw_log4jcheck.py @@ -9,7 +9,7 @@ urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) logging.basicConfig(level=logging.INFO) -# Change this to your DNS zone +# Change this to your DNS zone HOSTNAME = "yourdns.zone.here" header_injects = [ @@ -48,6 +48,8 @@ def send_request(url, headers={}, timeout=5): logging.error(f"HTTP connection to target URL error: {e}") except requests.exceptions.Timeout: logging.error("HTTP request timeout") + except urllib3.exceptions.LocationParseError as e: + logging.error(f"Failed to parse URL: {e}") def check_urls(urls, wait, timeout): url_identifiers=dict()