跳到正文
FunCoding

crt.sh

Enumerate subdomains and TLS certs via CT logs (no API key needed)

Star
915
分类
其他
许可证
AGPL-3.0
最近提交
2026年10月20日

skills/crt-sh/SKILL.md

在 GitHub 上查看

Certificate Transparency Search (crt.sh)

Query crt.sh to enumerate all TLS/SSL certificates ever issued for a domain. Certificate transparency logs are public — no API key or account needed.

When to Use

  • User wants to find all subdomains of a domain (recon / asset discovery)
  • User wants to see what TLS certificates have been issued for their domain
  • User is doing OSINT on an organization's infrastructure
  • User asks "what subdomains does X have" or "find all certs for domain"
  • Security audit: discover forgotten or misconfigured subdomains

How to Use

List all certificates for a domain

$domain = "taracod.com"
$url    = "https://crt.sh/?q=$domain&output=json"

$certs = Invoke-RestMethod -Uri $url
Write-Host "Found $($certs.Count) certificate records"
$certs | Select-Object -First 10 | Format-Table id, name_value, not_before, not_after -AutoSize

Extract unique subdomain names

$domain = "taracod.com"
$url    = "https://crt.sh/?q=$([Uri]::EscapeDataString("*.$domain"))&output=json"

$certs  = Invoke-RestMethod -Uri $url
$names  = $certs | ForEach-Object { $_.name_value -split "`n" } |
          Sort-Object -Unique |
          Where-Object { $_ -ne "" -and $_ -ne "*.$domain" }

Write-Host "Unique subdomains / names ($($names.Count)):"
$names | ForEach-Object { Write-Host "  $_" }

Search for certificates by organization (CA issuance)

$domain  = "taracod.com"
$url     = "https://crt.sh/?q=$domain&output=json"
$certs   = Invoke-RestMethod -Uri $url

$certs | Select-Object issuer_name, not_before, not_after, name_value |
    Sort-Object not_before -Descending |
    Select-Object -First 20 |
    Format-Table -AutoSize

Find recently issued certificates (last 30 days)

$domain    = "example.com"
$url       = "https://crt.sh/?q=$domain&output=json"
$certs     = Invoke-RestMethod -Uri $url
$cutoff    = (Get-Date).AddDays(-30)

$recent = $certs | Where-Object {
    [datetime]$_.not_before -gt $cutoff
} | Select-Object name_value, not_before, issuer_name

Write-Host "Certificates issued in the last 30 days: $($recent.Count)"
$recent | Format-Table -AutoSize

Examples

"Find all subdomains for google.com" → Use the subdomain extraction snippet with $domain = "google.com".

"What TLS certificates has github.com had?" → Use the first snippet with $domain = "github.com" and look at not_before/not_after.

"Show me recently issued certs for competitor.com" → Use the "recently issued" snippet — useful for tracking new infrastructure.

Cautions

  • crt.sh is a free public service — do not hammer it with rapid requests; add a short delay between bulk queries
  • Results include historical (expired) certificates unless you filter by not_after
  • Wildcard certificates (*.example.com) are returned — the name_value field may contain multiple names separated by newlines
  • Subdomains found here may no longer be active — always verify with DNS before assuming they are live
  • Certificate transparency data is public by design; this is open-source intelligence, not hacking

Requirements

  • No API key required — crt.sh is fully public
  • PowerShell's Invoke-RestMethod handles JSON parsing automatically

相似的 Skill

claude-handoff

MAmattpocock/skills337k近 7 天新增 4,217 个 star

software-factory

MAmattpocock/skills337k近 7 天新增 4,217 个 star

agent-payment-x402

AFaffaan-m/ECC315k近 7 天新增 3,503 个 star

agent-self-evaluation

AFaffaan-m/ECC315k近 7 天新增 3,503 个 star

bengali-nlp

AFaffaan-m/ECC315k近 7 天新增 3,503 个 star

ponytail-gain

DIDietrichGebert/ponytail203k近 7 天新增 4,226 个 star