MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / compliance_report_export

Function compliance_report_export

webapp_modern.py:6491–6507  ·  view source on GitHub ↗

Generate and download a self-contained HTML compliance report (CIS + PCI).

()

Source from the content-addressed store, hash-verified

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
6500def 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

Callers

nothing calls this directly

Calls 6

build_cis_reportMethod · 0.95
build_pci_reportMethod · 0.95
ComplianceReporterClass · 0.90
render_compliance_htmlFunction · 0.90
errorMethod · 0.80

Tested by

no test coverage detected