MCPcopy Create free account
hub / github.com/TheSecuredAnalyst/security-suite / OSINTModule

Class OSINTModule

modules/osint/base.py:10–33  ·  view source on GitHub ↗

Abstract base class for OSINT modules.

Source from the content-addressed store, hash-verified

8
9class OSINTModule(ABC):
10 """Abstract base class for OSINT modules."""
11
12 name: str = "base"
13 description: str = "Base OSINT module"
14
15 def __init__(self):
16 self.logger = get_logger(f"osint.{self.name}")
17
18 @abstractmethod
19 async def run(self, target: Target) -> ScanResult:
20 """Execute the OSINT module against a target.
21
22 Args:
23 target: The target to investigate
24
25 Returns:
26 ScanResult containing findings
27 """
28 pass
29
30 def create_result(self, target: Target) -> ScanResult:
31 """Create a new ScanResult for this module."""
32 return ScanResult(target=target, module=f"osint.{self.name}")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected