Skip to content

Commit

Permalink
Merge pull request #497 from blacklanternsecurity/async-optimize
Browse files Browse the repository at this point in the history
adding cleanup within nested module runs
  • Loading branch information
liquidsec authored Sep 30, 2024
2 parents 9c4b115 + 80ec979 commit d378e95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions baddns/modules/references.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 2 additions & 0 deletions baddns/modules/txt.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ async def dispatch(self):
"trigger": self.target_dnsmanager.target,
}
)
cname_instance_direct.cleanup()

cname_instance = BadDNS_cname(
host,
Expand All @@ -78,6 +79,7 @@ async def dispatch(self):
"trigger": self.target_dnsmanager.target,
}
)
cname_instance.cleanup()

return True

Expand Down

0 comments on commit d378e95

Please sign in to comment.