From b6e7d3eef2f8b7ab64ba9d1af1d6b4e6f3e10820 Mon Sep 17 00:00:00 2001 From: acidvegas Date: Sat, 4 Jan 2025 21:56:53 -0500 Subject: [PATCH] Proper error handling on failed axfr --- extras/mdaxfr.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/extras/mdaxfr.py b/extras/mdaxfr.py index 5dc1e2a..491148a 100644 --- a/extras/mdaxfr.py +++ b/extras/mdaxfr.py @@ -140,7 +140,10 @@ def process_domain(domain: str): print(f' {BLUE}Found {len(nameserver_ips):,} IP addresses for {PURPLE}{nameserver}{RESET}') for nameserver_ip in nameserver_ips: - attempt_axfr(domain, nameserver, nameserver_ip) + try: + attempt_axfr(domain, nameserver, nameserver_ip) + except Exception as e: + print(f' {RED}Error performing AXFR for {CYAN}{domain}{RESET} on {PURPLE}{nameserver} {GREY}({nameserver_ip}){RESET} - {e}{RESET}')