返回首页 证书透明度日志查询脚本

证书透明度日志查询脚本

**脚本 | 2025-06-18 04:29:54

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"))