| 80 | @dataclass |
| 81 | class ReconResult: |
| 82 | recon_type: ReconType |
| 83 | target: str |
| 84 | findings: List[VulnerabilityFinding] = field(default_factory=list) |
| 85 | artifacts: Dict[str, Any] = field(default_factory=dict) |
| 86 | duration_seconds: float = 0.0 |
| 87 | status: str = "pending" |
| 88 | error_message: str = "" |
| 89 | |
| 90 | def to_dict(self) -> Dict[str, Any]: |
| 91 | return { |
| 92 | "recon_type": self.recon_type.value, |
| 93 | "target": self.target, |
| 94 | "findings": [f.to_dict() for f in self.findings], |
| 95 | "artifacts": self.artifacts, |
| 96 | "duration_seconds": self.duration_seconds, |
| 97 | "status": self.status, |
| 98 | "error_message": self.error_message, |
| 99 | } |
| 100 | |
| 101 | |
| 102 | @dataclass |
| 103 | class ReconScanState: |
no outgoing calls