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

Class DummyModule

bbot/test/test_step_1/test_scan.py:239–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237 from bbot.modules.base import BaseModule
238
239 class DummyModule(BaseModule):
240 watched_events = ["DNS_NAME"]
241
242 async def handle_event(self, event):
243 if event.type == "DNS_NAME" and event.data == "evilcorp.com":
244 await self.emit_event("www.evilcorp.com", "DNS_NAME", parent=event, tags=["cdn-cloudflare"])
245 if event.type == "DNS_NAME" and event.data == "www.evilcorp.com":
246 await self.emit_event("www.evilcorp.com:80", "OPEN_TCP_PORT", parent=event, tags=["cdn-cloudflare"])
247 await self.emit_event("www.evilcorp.com:443", "OPEN_TCP_PORT", parent=event, tags=["cdn-cloudflare"])
248 await self.emit_event("www.evilcorp.com:8080", "OPEN_TCP_PORT", parent=event, tags=["cdn-cloudflare"])
249
250 dummy = DummyModule(scan=scan)
251 await scan._prep()

Callers 1

test_exclude_cdnFunction · 0.70

Calls

no outgoing calls

Tested by 1

test_exclude_cdnFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…