# Censys subdomain finder

> Python script that lists a domain's subdomains from certificate transparency data in Censys Search.

Source: https://osinttools.io/tools/censys-subdomain-finder/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

- **Inputs:** Domain
- **Category:** Infrastructure and domains
- **Pricing:** Open source (Free and open source; requires a Censys plan with API access.)
- **Footprint:** passive (does not contact the target)
- **Account required:** yes, for full results
- **API:** no public API
- **Platforms:** Python CLI
- **Website:** https://github.com/christophetd/censys-subdomain-finder
- **GitHub:** christophetd/censys-subdomain-finder, 853 stars · Python · last commit 2025-05-01 · dormant (no commit on the default branch in 18 months)
- **Listed:** Nov 23
- **Last verified by an editor:** Nov 23, 2026

## What it does

This script makes one Censys API call per run to find subdomains of a domain that have appeared in certificates issued by public certificate authorities, and prints them or writes them to a file.

Researchers used it for quick passive subdomain enumeration, but it depends on Censys API access.

Footprint is passive: it reads its own index or third-party records and does not contact the target. An account is needed for full results. There is no public API.

## Features

- Subdomains from certificate transparency
- One API call per run
- Text file output
- .env credential support

## Pros

- Does not contact the target
- Very simple to run
- Finds hosts that have ever had a public certificate

## Cons

- The README notes that since late 2024 Censys no longer gives API access to free accounts, so a paid plan is needed
- Only finds names that appear in public certificates

## When to use it

- Use it when you have Censys API access and want a fast passive subdomain list.
- Use it as a small example of querying Censys certificate data.

## Quick start

Terminal · Python 3.7+:

```
git clone https://github.com/christophetd/censys-subdomain-finder.git
cd censys-subdomain-finder
pip install -r requirements.txt
python censys-subdomain-finder.py example.com
```

## Alternatives

- [DNSDumpster](https://osinttools.io/tools/dnsdumpster/): Passive DNS reconnaissance site that lists a domain's subdomains, hosts, mail and name servers with a map. (Freemium · Domain · passive)
- [Fast Google Dorks Scan](https://osinttools.io/tools/fast-google-dorks-scan/): Shell script that runs a set of Google dork searches against one website to find admin panels, file types and exposed paths. (Open source · Domain · passive · 1,744 GitHub stars)
- [Findomain](https://osinttools.io/tools/findomain/): Rust subdomain finder that queries certificate logs and dozens of passive APIs, with optional monitoring and alerts. (Open source · Domain · depends · 3,838 GitHub stars)
- [OWASP Amass](https://osinttools.io/tools/amass/): OWASP command-line tool for subdomain enumeration and attack surface mapping using passive sources and DNS. (Open source · Domain · depends · 15,554 GitHub stars)
- [OneForAll](https://osinttools.io/tools/oneforall/): Python subdomain collector that combines certificate logs, DNS datasets, search engines, brute force and takeover checks. (Open source · Domain · depends · 10,160 GitHub stars)
- [ParamSpider](https://osinttools.io/tools/paramspider/): Fetches a domain's archived URLs from the Wayback Machine and filters them down to ones with parameters. (Open source · Domain · passive · 3,214 GitHub stars)

All alternatives to Censys subdomain finder in one table: https://osinttools.io/tools/censys-subdomain-finder/alternatives/

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
