Improve evidence classification and compact CLI reporting

This commit is contained in:
0x000 committed 2026-10-15 14:30:45 -04:00
1 parent 9dc7289652
commit dda4f8563f
28 files changed
+945 -87

No files matched your search

+7
View File
@@ -59,6 +59,13 @@ class ModelTests(unittest.TestCase):
collection={"rpcdump": "success"}))
self.assertEqual(host.checks["check"], "suspected")
self.assertEqual(host.collection["rpcdump"], "success")
self.assertEqual(host.conflicting_checks(), {"check"})
def test_capability_conflict_is_retained_in_both_merge_orders(self):
for first, second in (("exposed", "not-exposed"), ("not-exposed", "exposed")):
host = HostEvidence("192.0.2.1", checks={"smbghost": first})
host.merge(HostEvidence("192.0.2.1", checks={"smbghost": second}))
self.assertEqual(host.conflicting_checks(), {"smbghost"})
if __name__ == "__main__":