Generate and download a self-contained HTML compliance report (CIS + PCI).
()
| 6489 | f.write(f"=== NETWORK DISCOVERY RESULTS ===\n") |
| 6490 | f.write(f"Host discovered through network scanning\n") |
| 6491 | f.write(f"Further vulnerability scanning recommended\n") |
| 6492 | else: |
| 6493 | f.write(f"Host {ip} is not responding\n") |
| 6494 | f.write(f"Status: INACTIVE\n") |
| 6495 | |
| 6496 | except Exception as e: |
| 6497 | logger.error(f"Error updating vulnerability output for {ip}: {e}") |
| 6498 | |
| 6499 | |
| 6500 | def update_netkb_entry(ip, hostname, mac, is_alive): |
| 6501 | try: |
| 6502 | # Update vulnerability output files |
| 6503 | update_vulnerability_output(ip, hostname, mac, is_alive) |
| 6504 | |
| 6505 | netkb_path = shared_data.netkbfile |
| 6506 | os.makedirs(os.path.dirname(netkb_path), exist_ok=True) |
| 6507 | |
| 6508 | rows = [] |
| 6509 | headers: list[str] = [] |
| 6510 | updated_row = None |
nothing calls this directly
no test coverage detected