Data class representing system hardware capabilities
| 31 | |
| 32 | from logger import Logger |
| 33 | |
| 34 | logger = Logger(name="server_capabilities", level=logging.INFO) |
| 35 | |
| 36 | |
| 37 | @dataclass |
| 38 | class SystemCapabilities: |
| 39 | """Data class representing system hardware capabilities""" |
| 40 | architecture: str = "unknown" |
| 41 | cpu_cores: int = 1 |
| 42 | total_ram_gb: float = 0.0 |
| 43 | available_ram_gb: float = 0.0 |
| 44 | is_64bit: bool = False |
| 45 | is_server_capable: bool = False |
| 46 | is_pi_zero: bool = False |
| 47 | kiosk_capable: bool = False |
| 48 | kiosk_block_reason: str = "" |
| 49 | traffic_capable: bool = False |
| 50 | traffic_block_reason: str = "" |
| 51 | hostname: str = "" |
| 52 | os_name: str = "" |
| 53 | os_version: str = "" |
| 54 | kernel_version: str = "" |
| 55 | |
| 56 | # Feature flags |
| 57 | traffic_analysis_enabled: bool = False |
| 58 | traffic_sidecars_enabled: bool = False |
| 59 | advanced_vuln_enabled: bool = False |
| 60 | zap_enabled: bool = False |
| 61 | nuclei_enabled: bool = False |