Abstract base class for OSINT modules.
| 8 | |
| 9 | class 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}") |
nothing calls this directly
no outgoing calls
no test coverage detected