ever-just/agentskills/domain-email-enumeration

Claude Code and agent skill by ever-just/agentskills

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Install

npx vskill@latest install ever-just/agentskills/domain-email-enumeration

SKILL.md

The same SKILL.md was published earlier as ever-just/agentskills/domain-email-enumeration.

Domain Email Enumeration

Discover all email addresses, mail infrastructure, and contact patterns associated with a target domain using open-source OSINT tools.

Prerequisites

Required tools
bash
# theHarvester — gold standard email/subdomain harvester (16K+ stars)
pipx install git+https://github.com/laramies/theHarvester.git
# holehe — checks email against 120+ sites via "forgot password" endpoint
pip install holehe # (use a venv: python3.12 -m venv /tmp/osint-venv)
Email verification (SMTP RCPT TO)
bash
# AfterShip email-verifier — Go library with SMTP check + catch-all detection
# Build from source:
mkdir -p /tmp/email-verify-run && cd /tmp/email-verify-run
# See verify_emails.go template in this skill for usage
# Repo: https://github.com/AfterShip/email-verifier (1,576 stars, MIT license)
# Alternative: reacherhq/check-if-email-exists (Rust, 8,789 stars, AGPL)
# Has M365 B2B/B2C-specific verification modes
# Install: download binary from GitHub releases or build with cargo
Provider people-API verification (the "Gmail profile-photo" trick)

These confirm an account exists — and often return a name/photo — by querying the same internal people/presence APIs that power Gmail's To-field autocomplete, Teams presence, and Gravatar. Unlike SMTP checks, these actually work on Gmail (see Phase 4.5).

bash
# GHunt — email -> Google account (gaia ID, display name, profile photo, Workspace vs
# personal, Maps/YouTube/Calendar). This is the tool behind the Gmail profile-photo trick.
pipx install ghunt
ghunt login # paste base64 cookies from the GHunt browser extension (auth REQUIRED)
# TeamsEnum — email -> valid Microsoft 365 account + presence + device
git clone https://github.com/sse-secure-systems/TeamsEnum.git
# requires an authenticated M365 token/creds (MSAL); see repo README
# Gravatar — NO install, NO API key, NO SDK. Pure HTTP against a hash of the email.
# See Phase 4.5 for the exact one-liners.
Optional tools
bash
# mosint — modern email OSINT in Go
go install github.com/alpkeskin/mosint@latest
# linkedin2username — generate email lists from LinkedIn company pages
pip install linkedin2username
# h8mail — email breach hunting
pip install h8mail
MCP servers
bash
# OpenOSINT — 9 OSINT tools including email enumeration (holehe-based)
pip install openosint
claude mcp add openosint -- python3 -m openosint.mcp_server
# theHarvester MCP wrapper
# https://github.com/schwarztim/sec-theharvester-mcp
# Gravatar — OFFICIAL remote MCP (Automattic). 6 tools: get_profile_by_email/_id,
# get_inferred_interests_by_email/_id, get_avatar_by_email/_id. API key optional
# (GRAVATAR_API_KEY only for enhanced fields/limits). Self-host, then connect:
claude mcp add gravatar -- npx mcp-remote http://localhost:8787/mcp
# Repo: https://github.com/Automattic/mcp-server-gravatar-remote
# GHunt — no first-party MCP. Use an OSINT MCP that bundles it (Google account by
# email/ID). osint-tools-mcp-server ships GHunt + Sherlock/Holehe/theHarvester/
# Maigret/Blackbird/SpiderFoot:
# git clone https://github.com/frishtik/osint-tools-mcp-server
# pip install -r requirements.txt # then add via JSON config (command: python …)
# GHunt still needs its own `ghunt login` cookies (see Phase 4.5).
# Curated index of OSINT MCP servers: https://github.com/soxoj/awesome-osint-mcp-servers

Workflow

Phase 1: DNS reconnaissance (email infrastructure)

Before hunting for individual emails, understand the domain's mail setup:

bash
# MX records — who handles email
dig TARGET.com MX +short
# SPF record — authorized mail servers
dig TARGET.com TXT +short | grep spf
# DMARC policy
dig _dmarc.TARGET.com TXT +short
# Microsoft 365 indicators
dig autodiscover.TARGET.com CNAME +short
dig selector1._domainkey.TARGET.com CNAME +short
dig selector2._domainkey.TARGET.com CNAME +short
# Google Workspace indicators
dig google._domainkey.TARGET.com TXT +short
dig _dmarc.TARGET.com TXT +short # look for rua/ruf mailto addresses

What this tells you:

  • MX → outlook.com / protection.outlook.com = Microsoft 365
  • MX → google.com / googlemail.com = Google Workspace
  • MX → mimecast / proofpoint = enterprise email security gateway
  • SPF includes reveal additional email services (marketing platforms, CRMs)
  • DMARC rua/ruf mailto addresses can reveal monitoring emails or third-party services
Phase 2: theHarvester (bulk email discovery)
bash
# Run with free sources (no API keys needed)
theHarvester -d TARGET.com -b crtsh,dnsdumpster,duckduckgo,hackertarget,rapiddns,urlscan -l 500
# With API keys configured (~/.theHarvester/api-keys.yaml)
theHarvester -d TARGET.com -b all -l 500
# Output to file
theHarvester -d TARGET.com -b crtsh,duckduckgo,rapiddns,urlscan -l 500 -f /tmp/harvest_results

Extracts: emails, subdomains, hosts, IPs, ASNs, interesting URLs

Phase 3: Website scraping (contact pages)

For Wix/SPA sites where WebFetch can't see rendered content, use alternative approaches:

bash
# Google cache / cached version
# Search: "site:TARGET.com email" OR "site:TARGET.com contact"
# Search: "TARGET.com" "@TARGET.com"
# Wayback Machine for historical email addresses
curl -s "http://web.archive.org/cdx/search/cdx?url=TARGET.com/contact*&output=json&fl=timestamp,original&limit=20"
# PDF metadata (emails often in author/creator fields)
# Download PDFs from site, then: exiftool *.pdf | grep -i email
Phase 4: Email pattern inference

Most companies follow predictable patterns. Once you know one real email, you can infer others:

PatternExamplePrevalence
first@domain.comcelina@brogavsolutions.comVery common (small companies)
first.last@domain.comcelina.berglund@domain.comMost common (enterprises)
flast@domain.comcberglund@domain.comCommon
firstl@domain.comcelinab@domain.comLess common
first_last@domain.comcelina_berglund@domain.comRare

To validate inferred emails:

bash
# holehe — check if email is registered on 120+ sites
holehe TARGET_EMAIL@domain.com --only-used
# SMTP verification (careful — can trigger alerts)
# Use a verification service or check MX + RCPT TO manually
Phase 4.5: Account-existence verification via provider people-APIs (the "Gmail profile-photo" trick)

When you type an address into Gmail's To field and a name + profile photo appear before you send, that's Google Contacts autocomplete backed by Google's internal People API. If the address maps to a Google account, the API returns its permanent gaia ID, display name, and profile photo; if not, nothing comes back. That "something vs. nothing" is a clean account-existence signal — no email is ever sent.

Why this matters here: SMTP RCPT verification (see Phase 4) is unreliable on the biggest providers — Gmail returns 250 OK for every address (catch-all at the protocol level), so it tells you nothing. These people-API checks do work on Gmail and M365.

Use this to confirm which pattern-inferred guesses are live and attach a name/photo.

Google (Gmail + Workspace) — GHunt
bash
# One-time auth (GHunt needs YOUR Google session cookies; anonymous access is closed):
ghunt login # paste base64 cookies from the GHunt browser extension
# Verify + enrich a single address:
ghunt email target@gmail.com
# Returns: account exists? gaia ID, display name, profile photo URL,
# personal Gmail vs Workspace seat, linked Maps/YouTube/Calendar activity.
# JSON out for scripting a candidate list:
ghunt email target@company.com --json /tmp/ghunt_target.json

Works on Workspace domains too (any @company.com whose MX is Google) — check MX first in Phase 1. Caveat: uses undocumented internal endpoints and requires authenticated cookies; Google periodically tightens this and rate-limits, so batch modestly.

Microsoft 365 / Teams
bash
# GetCredentialType — lightweight existence check (no session needed), IfExistsResult:
# 0 = account exists, 1 = does not, 5 = exists in a different/managed tenant
curl -s https://login.microsoftonline.com/common/GetCredentialType \
-H 'Content-Type: application/json' \
-d '{"Username":"target@company.com"}' | grep -o '"IfExistsResult":[0-9]*'
# TeamsEnum — richer: valid account + presence status + device (needs an M365 token)
python3 TeamsEnum.py -a token -t <TOKEN> -e emails.txt

Only relevant when Phase 1 shows the MX is Microsoft (*.protection.outlook.com).

Universal (any provider) — Gravatar: no key, no SDK, just HTTP

Gravatar identifies accounts by a hash of the lowercased, trimmed email (MD5 legacy, SHA-256 supported). Everything below is unauthenticated — you build a URL and GET it.

bash
EMAIL="target@anydomain.com"
HASH=$(printf '%s' "$EMAIL" | tr '[:upper:]' '[:lower:]' | tr -d '[:space:]' | md5sum | cut -d' ' -f1)
# 1) Existence check — d=404 makes Gravatar 404 when no avatar is registered:
curl -s -o /dev/null -w "%{http_code}\n" "https://gravatar.com/avatar/$HASH?d=404"
# 200 = a Gravatar exists for this email | 404 = none
# 2) Public profile (name, location, social/website links) — plain JSON, no auth:
curl -s "https://gravatar.com/$HASH.json"
# 3) The avatar image itself:
# https://gravatar.com/avatar/$HASH

Does Gravatar need an API/SDK? No. The three calls above need nothing — no account, no key, no library. An API key is only required for the newer v3 REST API (https://api.gravatar.com/v3/profiles/<hash>, Authorization: Bearer <key>), which you'd reach for solely for higher rate limits or extra fields. For enumeration, the plain URLs are enough. Automate with anotherhadi/gravatar-recon or hashtray if you want profile aggregation.

Can Gravatar *find* emails/contacts? It's a pivot/enrichment tool, not a discovery engine — there's no "list all emails at a domain" query. Two useful directions:

  • Forward (email → contact): a known/guessed email resolves to a public identity —

display name, location, website, and verified social accounts listed on the profile (<hash>.json → accounts[]). Great for turning a validated address into a person + their other profiles.

  • Reverse (profile/hash → email): a Gravatar profile page exposes the account's

hash, and the hash can sometimes be turned back into the email. MD5 is one-way, so this is a dictionary/guess attack — hash your candidate emails (pattern-inferred from Phase 4, or a wordlist) and match against the target hash. Tools: hashtray and dlamblin/ReverseGravatar. It only succeeds if the real email is in your candidate set — so Gravatar confirms and enriches guesses rather than generating new addresses from nothing.

Can it start from a LinkedIn profile or a website? No. Gravatar is keyed only by the email (its hash) — there is no reverse index by name, company, domain, LinkedIn, or URL. LinkedIn/websites are sources for the email guess, not Gravatar inputs: LinkedIn name → infer first.last@company.com (Phase 4) → hash → check Gravatar; or scrape an email off a site → then enrich it. Gravatar can go email → LinkedIn/website (profile accounts[]), never LinkedIn/website → email.

Every valid Gravatar input (only 4 — all reduce to the email):

InputHow it's used
Email addressLowercased + trimmed, then hashed — the primary key
The hash (MD5 or SHA-256 of the email)Direct lookup; what a profile page exposes
Gravatar username / profile slug (gravatar.com/<username>)Vanity URL → resolves to a hash → profile
Profile IDIdentifier form used by the MCP get_*_by_id tools

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
3
Repository forks
1
7-day trend score
7

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ever-just/agentskills/domain-email-enumeration/badge)](https://verified-skill.com/skills/ever-just/agentskills/domain-email-enumeration)

Something wrong with this skill or its page? Tell us.