Implementation:7onez Cti expert Email Permute Permute
| Knowledge Sources | |
|---|---|
| Domains | OSINT, Email_Enumeration |
| Last Updated | 2026-10-28 14:00 GMT |
Overview
Concrete tool for generating email address candidates from a person's name and/or username using ranked permutation patterns, with keyless MX and Gravatar verification, provided by the cti-expert WebPivot engine.
Description
The permute function in email_permute.py generates email candidates from a person's name (first, middle, last) and/or a known username, tested against case domains (and optionally free mail providers). It:
- Parses the name with parse_name, honoring name order (given-first or family-first, auto-detected for Vietnamese names).
- Generates local parts with local_parts, ranked by pattern prior (username@ is highest, then first.last@, then f.last@, etc.).
- Verifies keylessly: MX record check (the domain can receive mail) and Gravatar existence check (the address is registered with Gravatar — avatar returns 200, not 404).
Candidates with no MX are skipped (dead domains). Corroborated candidates (Gravatar hit) are promoted. The result is CANDIDATES, not findings — the output description says so explicitly.
Usage
Import this when you need to:
- Generate email candidates for a person from their name and/or username.
- Test candidates against case domains (registrant/operator leads).
- Verify candidates keylessly (MX + Gravatar).
- Support Vietnamese name order (family-first detection).
Code Reference
Source Location
- Repository: cti-expert
- File: intel_engine/WebPivot/tools/email_permute.py
- Lines: L315-381 (permute), L181-214 (parse_name), L215-256 (local_parts)
Signature
def permute(name=None, username=None, domains=None, order="auto", free=False,
max_candidates=60, verify=False):
"""Generate email candidates from name/username. Returns {candidates, verified,
promote, ...}. CANDIDATES, not findings."""
def parse_name(raw, order="auto"):
"""Split a display name into folded first/middle/last, honouring name order."""
def local_parts(first, middle, last, username=None):
"""Yield (pattern_name, local_part, prior), highest prior first, de-duplicated."""
Import
from email_permute import permute
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| name | str | No /// Full person name | |
| username | str | No /// Known handle | |
| domains | list | No /// Case domains to test | |
| order | str | No /// "auto"/"given-first"/"family-first" (default "auto") | |
| free | bool | No /// Include free mail providers (default False) | |
| max_candidates | int | No /// Cap (default 60) | |
| verify | bool | No /// MX + Gravatar check (default False) |
Outputs
| Name | Type | Description |
|---|---|---|
| result | dict | {input, parsed, domains, candidates: [{email, local_part, domain, pattern, prior, status, confidence, evidence}], promote, truncated} |
Usage Examples
Permute Against Case Domains
from email_permute import permute
result = permute(
name="Nguyen Van An",
username="annguyen",
domains=["example.com", "site-a.example"],
order="auto", # auto-detects family-first for Vietnamese names
verify=True, # MX + Gravatar
)
for c in result["candidates"][:10]:
print(f"{c['email']} [{c['status']}] prior={c['prior']}")
for promoted in result["promote"]:
print(f"CORROBORATED: {promoted}")