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

Function get_domains

python3_cron_scripts/zgrab_http_domain.py:69–83  ·  view source on GitHub ↗

Get the list of domains based on zones

(all_dns_collection, ip_manager, zone)

Source from the content-addressed store, hash-verified

67
68
69def get_domains(all_dns_collection, ip_manager, zone):
70 """
71 Get the list of domains based on zones
72 """
73 zone_results = all_dns_collection.find({"zone": zone, "type": "a"})
74
75 domains = []
76 for result in zone_results:
77 if result["fqdn"] not in domains and not ip_manager.is_local_ip(
78 result["value"]
79 ):
80 domains.append(result["fqdn"])
81
82 random.shuffle(domains)
83 return domains
84
85
86def insert_result(entry, results_collection):

Callers 1

mainFunction · 0.85

Calls 1

is_local_ipMethod · 0.80

Tested by

no test coverage detected