diff --git a/baddns/modules/references.py b/baddns/modules/references.py index 1ba23e1..30d60ed 100644 --- a/baddns/modules/references.py +++ b/baddns/modules/references.py @@ -166,6 +166,7 @@ async def process_cname_analysis(self, parsed_results): "direct_mode": direct_mode, } cname_findings.append(finding) + cname_instance.cleanup() return cname_findings async def dispatch(self): diff --git a/baddns/modules/txt.py b/baddns/modules/txt.py index c915a5f..2024f30 100644 --- a/baddns/modules/txt.py +++ b/baddns/modules/txt.py @@ -60,6 +60,7 @@ async def dispatch(self): "trigger": self.target_dnsmanager.target, } ) + cname_instance_direct.cleanup() cname_instance = BadDNS_cname( host, @@ -78,6 +79,7 @@ async def dispatch(self): "trigger": self.target_dnsmanager.target, } ) + cname_instance.cleanup() return True