import requests
import json
def get_ct_logs(domain):
url = f"https://crt.sh/?q={domain}&output=json"
try:
response = requests.get(url)
return [entry['name_value'] for entry in response.json()]
except Exception as e:
print(f"Error: {e}")
return []
# 获取子域名和SAN条目
print(get_ct_logs("example.com"))