Recon-ng Cheat Sheet
Modular reconnaissance framework with workspaces, modules, and API-driven OSINT collectors.
Overview
Recon-ng is a Metasploit-style CLI for OSINT: manage workspaces per target, load modules for contacts, hosts, breaches, and export to reporting formats. Ideal when you need repeatable, note-friendly recon sessions.
Authorized testing only. Modules call third-party APIs and may store sensitive data in the local database—secure your machine and respect data handling requirements.
Install
sudo apt install -y recon-ngor
git clone https://github.com/lanmaster53/recon-ng.gitcd recon-ng && pip install -r REQUIREMENTSrecon-ngEssential commands
Start framework
recon-ngInside console:
marketplace searchmarketplace install allkeys listkeys add shodan_api YOUR_KEYCommon workflows
New workspace and domain —
workspaces create target_corpworkspaces select target_corpdb insert domainsdomain.example.comRun modules —
modules load recon/domains-hosts/hackertargetrunmodules load recon/domains-contacts/whois_pocsrunshow hostsshow contactsExport results —
export hosts /tmp/hosts.csvexport contacts /tmp/contacts.csvMarketplace refresh —
marketplace refreshmarketplace install recon/domains-hosts/certificate_transparencyFlags reference
workspaces create/select/list | Per-engagement DB |
|---|---|
db insert domains | Add seed domain |
modules search/load | Find and load module |
run / info / options | Execute / help / set options |
show hosts/contacts/domains | View tables |
keys add/list | API key management |
marketplace install | Install modules |
export | CSV export |
spool | Log commands to file |
High-value modules
Subdomains from certificate transparency logs
modules load recon/domains-hosts/certificate_transparencyEnumerate hosts via HackerTarget (no API key)
modules load recon/domains-hosts/hackertargetBrute-force subdomains from a wordlist
modules load recon/domains-hosts/brute_hostsCheck emails against known breaches (HaveIBeenPwned)
modules load recon/contacts-credentials/hibp_breachResolve hosts to IPs
modules load recon/hosts-hosts/resolveFind points of contact via Whois
modules load recon/domains-contacts/whois_pocsQuick one-liners
Run an entire session non-interactively from a resource file
recon-ng -w target_corp -r commands.rcSet a module option then run, in one console flow
options set SOURCE example.comGenerate an HTML report of all findings
modules load reporting/htmlSearch the marketplace for modules by keyword
marketplace search hackertargetShow which installed modules need API keys
marketplace search --installedTips
- Configure API keys once in keys.db—modules fail silently without them.
- Use separate workspaces per client to avoid data crossover.
- Prefer dedicated tools (subfinder, amass) for scale; recon-ng excels at chained OSINT.
- Recon-ng 5.x marketplace differs from legacy 4.x—verify module paths.