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

Method setup

bbot/modules/host_header.py:20–32  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

18 deps_apt = ["curl"]
19
20 async def setup(self):
21 self.subdomain_tags = {}
22 if self.scan.config.get("interactsh_disable", False) is False:
23 try:
24 self.interactsh_instance = self.helpers.interactsh()
25 self.domain = await self.interactsh_instance.register(callback=self.interactsh_callback)
26 except InteractshError as e:
27 self.warning(f"Interactsh failure: {e}")
28 return False
29 else:
30 self.warning("Interactsh is disabled globally. Interaction based detections will be disabled.")
31 self.domain = f"{self.rand_string(12, digits=False)}.com"
32 return True
33
34 def rand_string(self, *args, **kwargs):
35 return self.helpers.rand_string(*args, **kwargs)

Callers

nothing calls this directly

Calls 5

rand_stringMethod · 0.95
interactshMethod · 0.80
getMethod · 0.45
registerMethod · 0.45
warningMethod · 0.45

Tested by

no test coverage detected