recon-subdomain

recon-subdomain is a skill for Claude Code, Codex from crazyMarky/pentest-skills. It costs 54 tokens per session (2,715 once invoked), scanned A, original, Apache-2.0.

A set of command-line tools for finding subdomains and checking the DNS records connected to a domain. A subdomain is an address such as blog.example.com under a main website.

In plain words
What is it for?
Use it to discover known or hidden subdomains, find which ones resolve to servers, and gather DNS details for a domain you are allowed to assess.
Why use it?
It collects domain information that would otherwise require running several separate security tools and combining their results. It is intended for authorized testing only.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Good fit Use it to discover known or hidden subdomains, find which ones resolve to servers, and gather DNS details for a domain you are allowed to assess.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/crazymarky/pentest-skills/recon-subdomain
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add crazyMarky/pentest-skills --skill recon-subdomain
Clone the repo
git clone --depth 1 https://github.com/crazyMarky/pentest-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for recon-subdomain

README.md
[![agentmods](https://agentmods.dev/badge/skills/crazymarky/pentest-skills/recon-subdomain/github.svg)](https://agentmods.dev/skills/crazymarky/pentest-skills/recon-subdomain)
Your own site
<a href="https://agentmods.dev/skills/crazymarky/pentest-skills/recon-subdomain"><img src="https://agentmods.dev/badge/skills/crazymarky/pentest-skills/recon-subdomain/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for recon-subdomain

Your own site · 80×15
<a href="https://agentmods.dev/skills/crazymarky/pentest-skills/recon-subdomain"><img src="https://agentmods.dev/badge/skills/crazymarky/pentest-skills/recon-subdomain.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,715 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.02715
Opus 5 $0.00027 $0.01358
Sonnet 5 $0.00011 $0.00543
Haiku 4.5 $0.00005 $0.00271

Measured 13d ago against content hash 56b1e4f0bbfa, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

recon-subdomain scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/filter_resolved.py, scripts/merge_subdomains.py, scripts/subdomain_stats.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s "https://crt.sh/?q=%.example.com&output=json" | \
recon-subdomain/SKILL.md · 418 lines

How it starts

The opening of the file, as written. The whole thing — 418 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Subdomain Enumeration / DNS Reconnaissance

Authorization Warning

IMPORTANT: Subdomain enumeration without proper authorization may violate terms of service. Always ensure you have:

  • Written permission from the target domain owner
  • Defined scope of authorized testing
  • Legal compliance with local regulations

Prerequisites

Required tools that must be installed on your system:

  • subfinder - go install -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest
  • dnsx - go install -v github.com/projectdiscovery/dnsx/cmd/dnsx@latest

Optional tools:

  • amass - go install -v github.com/owasp-amass/amass/v4/cmd/amass@latest
  • assetfinder - go install github.com/tomnomnom/assetfinder@latest
  • puredns - go install github.com/d3mondev/puredns/v2@latest

Quick Start

Most commonly used commands for subdomain enumeration:

Fast Subdomain Discovery (Subfinder)

subfinder -d example.com -o subs.txt

Subdomain Discovery + DNS Resolution

subfinder -d example.com -silent | dnsx -silent -resp > resolved_subs.txt

Comprehensive Subdomain Enumeration (Amass)

amass enum -passive -d example.com -o amass_subs.txt

Multiple Tools Combined

subfinder -d example.com -silent | tee subs1.txt && \
assetfinder --subs-only example.com | tee subs2.txt && \
cat subs1.txt subs2.txt | sort -u > all_subs.txt

Common Scenarios

Scenario 1: Quick Passive Subdomain Discovery

When you need fast subdomain discovery without direct interaction:

subfinder -d example.com -o subs.txt

Parameters:

  • -d example.com - Target domain
  • -o subs.txt - Output file
  • -silent - Suppress stderr output (optional)

Example:

subfinder -d target.com -o target_subs.txt
subfinder -d target.com -silent | head -20

Scenario 2: Active Subdomain Enumeration

When you need comprehensive active enumeration:

amass enum -active -d example.com -o amass_active.txt

Read the full file on GitHub · 418 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago First seen · 418 lines · 54 tokens per session scan A 56b1e4f0bbfa

Subscribe to this mod's changes

recon-subdomain is a skill published in the GitHub repository crazyMarky/pentest-skills (308 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 54 tokens to every session and 2,715 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

incident-response-fileanalyser

Static malware reverse-engineering and threat-intelligence triage for unknown files, Windows EXE/PE binaries, scripts, archives, ISOs, JavaScript, PowerShell, documents, and unpacked payloads. Use when a user provides a sample path, hash, filename, or file and asks whether it is malicious, benign, suspicious, contains…

crtvrffnrt/skills · 104 tokens

pentest-cve-vulnerability-research-helper

CVE and vulnerability research skill for exact CVE lookup, product/version applicability, exploit maturity, KEV/PoC status, source ranking, contradiction handling, and non-destructive validation guidance.

crtvrffnrt/skills · 49 tokens

pentest-hacktricks-finder

Support skill for HackTricks technique research, payload ideas, bypasses, prerequisites, caveats, and edge-case behavior across web, network, cloud, and application security topics. Use as owner only when research is the current blocker.

crtvrffnrt/skills · 56 tokens

pentest-web-enumeration

Authorized web enumeration for one or many websites or web applications, including live-target normalization, HTTP and TLS fingerprinting, technology and platform identification, virtual-host discovery, crawling, JavaScript and API endpoint extraction, focused directory and sensitive-file discovery, CMS-specific…

crtvrffnrt/skills · 101 tokens

web-pentest-skill

Analyze supplied artifacts from authorized web assessments with bounded defensive reasoning, evidence review, resumable workflow planning, and static reporting. Use for offline artifact analysis and explicitly reviewed task planning; never for autonomous exploitation, unreviewed target scanning, or executing…

crtvrffnrt/skills · 58 tokens

pentest-outbound-interaction-oob-detection

Outbound interaction and OOB validation for SSRF callbacks, blind XSS beacons, webhook abuse, XXE/OOB behavior, DNS/HTTP/HTTPS callback correlation, asynchronous server-side interaction proof, and egress validation.

crtvrffnrt/skills · 56 tokens