MCPcopy Create free account
hub / github.com/blacklanternsecurity/bbot / _cleanup

Method _cleanup

bbot/modules/base.py:933–940  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

931 return True, ""
932
933 async def _cleanup(self):
934 if not self._cleanedup:
935 self._cleanedup = True
936 for callback in [self.cleanup] + self.cleanup_callbacks:
937 context = f"{self.name}.cleanup()"
938 if callable(callback):
939 async with self.scan._acatch(context), self._task_counter.count(context):
940 await self.helpers.execute_sync_or_async(callback)
941
942 async def run_task(self, coro, name, n=1):
943 """

Callers 15

test_filesFunction · 0.45
test_configFunction · 0.45
test_scanFunction · 0.45
test_web_engineFunction · 0.45
test_web_helpersFunction · 0.45
test_web_interactshFunction · 0.45
test_web_curlFunction · 0.45
test_web_http_compareFunction · 0.45
test_http_proxyFunction · 0.45
test_http_sslFunction · 0.45

Calls 2

countMethod · 0.80
_acatchMethod · 0.45

Tested by 15

test_filesFunction · 0.36
test_configFunction · 0.36
test_scanFunction · 0.36
test_web_engineFunction · 0.36
test_web_helpersFunction · 0.36
test_web_interactshFunction · 0.36
test_web_curlFunction · 0.36
test_web_http_compareFunction · 0.36
test_http_proxyFunction · 0.36
test_http_sslFunction · 0.36