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

Method run_submodule

bbot/modules/lightfuzz/lightfuzz.py:110–129  ·  view source on GitHub ↗
(self, submodule, event)

Source from the content-addressed store, hash-verified

108 )
109
110 async def run_submodule(self, submodule, event):
111 submodule_instance = submodule(self, event)
112 await submodule_instance.fuzz()
113 if len(submodule_instance.results) > 0:
114 for r in submodule_instance.results:
115 event_data = {"host": str(event.host), "url": event.data["url"], "description": r["description"]}
116
117 envelopes = getattr(event, "envelopes", None)
118 envelope_summary = getattr(envelopes, "summary", None)
119 if envelope_summary:
120 # Append the envelope summary to the description
121 event_data["description"] += f" Envelopes: [{envelope_summary}]"
122
123 if r["type"] == "VULNERABILITY":
124 event_data["severity"] = r["severity"]
125 await self.emit_event(
126 event_data,
127 r["type"],
128 event,
129 )
130
131 async def handle_event(self, event):
132 if event.type == "URL":

Callers 1

handle_eventMethod · 0.95

Calls 2

emit_eventMethod · 0.80
fuzzMethod · 0.45

Tested by

no test coverage detected