Add requires_capture_bus attribute to BaseModule and passive modules
- BaseModule now has requires_capture_bus = False default - All 17 passive modules set requires_capture_bus = True - bigbrother.py imports CaptureBus from core.capture_bus - Ready for Engine to instantiate and inject CaptureBus
This commit is contained in:
@@ -135,6 +135,7 @@ class OSFingerprint(BaseModule):
|
||||
# Actually, let's keep SYN filter and add a second subscriber
|
||||
self._capture_bus.unsubscribe(self.name)
|
||||
self._sub_queue = self._capture_bus.subscribe(
|
||||
requires_capture_bus = True
|
||||
name=self.name,
|
||||
bpf_filter="tcp", # All TCP — we filter SYN and app-layer in code
|
||||
queue_depth=10000,
|
||||
|
||||
Reference in New Issue
Block a user