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

Class ExploitResult

modules/exploit_engine/runner.py:26–41  ·  view source on GitHub ↗

Result of a single exploit check or attempt.

Source from the content-addressed store, hash-verified

24
25logger = get_logger("exploit_engine.runner")
26
27
28@dataclass
29class ExploitResult:
30 """Result of a single exploit check or attempt."""
31 cve_id: str
32 target: str
33 port: int
34 module_path: str
35 status: str # CONFIRMED | NOT_EXPLOITABLE | UNKNOWN | NO_MODULE | BLOCKED | ERROR
36 check_output: str = ""
37 session_opened: bool = False # True only if live exploitation AND shell obtained
38 error: str = ""
39 timestamp: str = field(default_factory=lambda: datetime.now(timezone.utc).isoformat())
40 attack_tags: list[dict] = field(default_factory=list)
41
42 @property
43 def confirmed(self) -> bool:
44 return self.status == "CONFIRMED"

Callers 6

_genMethod · 0.90
check_cveMethod · 0.85
check_serviceMethod · 0.85
exploit_liveMethod · 0.85
_run_checkMethod · 0.85
_run_liveMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected