MCPcopy Create free account
hub / github.com/adobe/Marinus / get_censys_count

Function get_censys_count

python3_cron_scripts/create_cert_graphs.py:59–66  ·  view source on GitHub ↗

Get the count of matching certificates for the provided hash

(censys_collection, sha256_hash)

Source from the content-addressed store, hash-verified

57
58
59def get_censys_count(censys_collection, sha256_hash):
60 """
61 Get the count of matching certificates for the provided hash
62 """
63 result_count = censys_collection.count_documents(
64 {"p443.https.tls.certificate.parsed.fingerprint_sha256": sha256_hash}
65 )
66 return result_count
67
68
69def add_censys_certificates(censys_collection, zone, current_certs):

Callers 1

add_censys_certificatesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected