(self, scan_id: str)
| 191 | target=self._run_scan, |
| 192 | args=(scan_id, target, recon_types, timeout), |
| 193 | name=f"recon-{scan_id}", |
| 194 | daemon=True, |
| 195 | ).start() |
| 196 | |
| 197 | logger.info(f"Started recon scan {scan_id} against {target} ({[r.value for r in recon_types]})") |
| 198 | return scan_id |
| 199 | |
| 200 | def get_scan_state(self, scan_id: str) -> Optional[ReconScanState]: |
| 201 | with self._lock: |
| 202 | return self.active_scans.get(scan_id) |
| 203 |