Overview
TheHost class is the central data model that stores all information discovered during a security audit, including open ports, vulnerabilities, credentials, and risk assessment.
Class Definition
Constructor Parameters
The IP address of the target host
Attributes
The IP address of the target host
Dictionary mapping port numbers to service information. Each port entry contains service details discovered during reconnaissance.Structure:
List of
Vulnerability objects discovered during the audit. Populated by SQL injection, WordPress scanning, and other attack modules.List of credential dictionaries extracted during the audit.Structure:Fields:
source(str): Where the credential was founduser(str): Usernamepassword(str): Password hash or plaintextcracked(bool): Whether the hash was successfully cracked
List of discovered web directories from Gobuster enumeration.Structure:
Operating system detected by Nmap, or “No detectado” if detection failed
Overall risk assessment calculated by
RiskAnalyzer. See RiskLevel enum for possible values.Usage in Audit Pipeline
TheHost object is created during Phase 1 (Reconnaissance) and progressively populated:
Example
Related
- Vulnerability - Vulnerability data model
- AuditEngine - Uses Host to store audit results