Run Theharvester
run_theharvesterGather subdomains, email addresses, and open ports from public sources for a target domain. Supports DNS brute-forcing, virtual host detection, and takeover checks.
Instructions
theHarvester is a tool for gathering subdomain names, e-mail addresses, virtual hosts, open ports/ banners, and employee names from different public sources. Tags: osint, reconnaissance, security, pentest, enumeration, subdomains, email-harvesting
Usage Guide:
Basic Reconnaissance: Provide a
domainto collect emails and subdomains. Usesource(default "all") to query search engines and public databases.Performance Tuning: Use
limitto restrict the number of search results to avoid rate-limiting.Advanced Enumeration: Enable
dns_brute(-c) for wordlist-based subdomain guessing orvhost(-v) to identify virtual hosts on discovered IPs.Infrastructure Analysis: Enable
shodan(-s) to query port and service data (requires API key setup).API & Takeovers: Use
api_scan(-a) with awordlistto find hidden endpoints, andtakeover_check(-t) to detect subdomains pointing to unclaimed cloud services.Output: Save findings using
filenameor capture visual evidence of active sites withscreenshot_dir.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"domain": "<domain>"
},
"name": "run_theharvester"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Limit the number of search results (default 500). | |
| vhost | No | Verify hostnames via DNS and check for virtual hosts. | |
| domain | Yes | Target domain to search (e.g., example.com). | |
| shodan | No | Use Shodan to query discovered hosts for open ports. | |
| source | No | Data source to query (e.g., google, bing, crtsh, shodan, or "all"). | all |
| api_scan | No | Scan for API endpoints using a wordlist. | |
| filename | No | Save results to XML and JSON files (provide base name). | |
| wordlist | No | Path to a custom wordlist for API or enumeration. | |
| dns_brute | No | Perform DNS brute-force enumeration. | |
| resolver_list | No | Path to a file containing custom DNS resolvers. | |
| screenshot_dir | No | Directory to save screenshots of resolved web properties. | |
| takeover_check | No | Check discovered subdomains for potential takeover vulnerabilities. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |