passive-recon
БесплатноБез исполняемых скриптовНе проверенPassive reconnaissance gathers information about a domain from public sources only: WHOIS, DNS records, certificate transparency logs, the Wayback Machine…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
Passive Reconnaissance
Overview
Passive reconnaissance collects intelligence about a target from data that third parties already hold: registration records, certificate transparency logs, web archives, search indexes and DNS aggregators. Nothing in this skill connects to the target's own web servers. Your queries do go to third parties (crt.sh, the Internet Archive, HackerTarget, ipapi.co), and DNS lookups go through your resolver, which may reach the target's authoritative name servers, so the target's DNS logs can still show a lookup. Use it on domains you own or are authorized to assess, and treat everything found as a lead to confirm, not a fact.
Setup (a virtual environment keeps the packages out of your system Python):
$ python3 -m venv .venv && .venv/bin/pip install python-whois dnspython requests
Instructions
All snippets share these imports and a polite User-Agent. Set UA once and reuse it.
import json
import re
import dns.resolver
import requests
import whois
UA = {"User-Agent": "terminal-skills-check (https://terminalskills.io)"}
Step 1: WHOIS
python-whois parses the registry reply. Since GDPR most registrant fields are redacted, so the registrar, dates and name servers are usually the useful parts.
def whois_lookup(domain):
w = whois.whois(domain)
print(f"Registrar: {w.registrar}")
print(f"Created: {w.creation_date}")
print(f"Expires: {w.expiration_date}")
print(f"Name servers: {w.name_servers}")
print(f"Org / email: {getattr(w, 'org', None)} / {getattr(w, 'emails', None)}")
raw = (w.text or "").lower()
if any(word in raw for word in ("redacted", "privacy", "withheld", "proxy")):
print("Privacy protection is on: registrant data is hidden")
return dict(w)
whois_lookup("iana.org")
Dates can be a single value or a list, depending on the registry. Reverse WHOIS (other domains by the same registrant) needs a paid database such as WhoisXML API or DomainTools; free web tools return little since the redaction.
Step 2: DNS records
def dns_lookup(domain):
results = {}
for rtype in ("A", "AAAA", "MX", "NS", "TXT", "SOA", "CAA"):
try:
answers = dns.resolver.resolve(domain, rtype, lifetime=5)
except (dns.resolver.NoAnswer, dns.resolver.NXDOMAIN, dns.exception.Timeout):
continue
results[rtype] = [str(r) for r in answers]
print(f"{rtype:<5} {', '.join(results[rtype])}")
return results
dns_lookup("iana.org")
TXT records often leak vendors (SPF includes, domain-verification tokens for SaaS tools). MX shows the mail provider.
Step 3: Passive DNS and historical records
Free passive DNS is thin. HackerTarget's hostsearch returns known hostnames with IPs and is rate-limited per IP; it answers with an error text in the body, so check the text rather than the status code.
def hackertarget_hosts(domain):
r = requests.get("https://api.hackertarget.com/hostsearch/",
params={"q": domain}, headers=UA, timeout=20)
text = r.text.strip()
if text.lower().startswith("error") or "API count exceeded" in text:
print(f"HackerTarget: {text}")
return []
return [line.split(",") for line in text.splitlines() if "," in line]
for host, ip in hackertarget_hosts("iana.org")[:10]:
print(host, ip)
Private addresses (10.x) in the output are internal names leaked into DNS, a finding worth noting. For historical A records use SecurityTrails (API key from your account, free tier is small):
import os
def securitytrails_history(domain):
r = requests.get(f"https://api.securitytrails.com/v1/history/{domain}/dns/a",
headers={"APIKEY": os.environ["SECURITYTRAILS_API_KEY"]}, timeout=20)
r.raise_for_status()
for rec in r.json().get("records", []):
ips = [v.get("ip") for v in rec.get("values", [])]
print(rec.get("first_seen"), "->", rec.get("last_seen"), ips)
CIRCL's passive DNS service requires an approved account and returns 401 without one, so it is not a no-signup source.
Step 4: Certificate transparency (crt.sh)
Every publicly trusted certificate is logged, so crt.sh lists hostnames that ever had one, including internal-looking names. Let requests encode the % wildcard through params. The service is run by volunteers and often answers 502 or times out; retry a few times before giving up.
import time
def crt_sh_subdomains(domain, retries=4):
for attempt in range(retries):
try:
r = requests.get("https://crt.sh/", params={"q": f"%.{domain}", "output": "json"},
headers=UA, timeout=60)
r.raise_for_status()
certs = r.json()
break
except (requests.RequestException, ValueError):
time.sleep(5 * (attempt + 1))
else:
print("crt.sh unavailable, try again lat
Установить passive-recon в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл passive-recon?
Passive reconnaissance gathers information about a domain from public sources only: WHOIS, DNS records, certificate transparency logs, the Wayback Machine, reverse IP and search-engine dorks. Use when asked to profile a target without scanning it, find subdomains from public data, look up old IPs and URLs of a domain, or prepare the scoping stage of an authorized pentest or bug bounty.
Как установить скилл passive-recon?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл passive-recon запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic