pentesting, updated
amass
OWASP Amass: in-depth subdomain enumeration and attack-surface mapping from passive and active sources.
What it’s for
Thorough subdomain and attack-surface discovery, combining many passive sources with optional active resolution and brute forcing.
Options
Subcommands
| Subcommand | Effect |
|---|---|
amass enum | Find and resolve subdomains |
amass intel | Discover root domains and org info for a target |
amass db | Query results stored in the local graph database |
enum targeting
| Flag | Effect |
|---|---|
-d example.com | Target domain (repeatable) |
-df domains.txt | Read target domains from a file |
-passive | No active DNS resolution — stealthier, faster |
-active | Resolve and allow active techniques |
-brute | Brute-force subdomains |
-w wordlist.txt | Wordlist for brute forcing |
-norecursive | No recursive brute forcing |
Sources, scope and output
| Flag | Effect |
|---|---|
-src | Show which source reported each name |
-ip / -ipv4 | Show resolved addresses |
-o out.txt | Write results to a file |
-json out.json | JSON output |
-config config.yaml | Config file with API keys |
-exclude src1,src2 | Disable named data sources |
-max-dns-queries N | Rate-limit resolution |
intel options
| Flag | Effect |
|---|---|
-d example.com | Seed domain |
-whois | Pull related domains via reverse WHOIS |
-asn N | Enumerate an ASN |
-cidr 10.0.0.0/24 | Seed from a network block |
-org "Example" | Search by organisation name |
Examples
Enumeration
amass enum -passive -d example.com # passive only, no direct target traffic
amass enum -active -d example.com -ip # resolve names, show addresses
amass enum -brute -w subs.txt -d example.com # add brute forcing from a wordlist
amass enum -df domains.txt -o subs.txt # several domains from a file → file
amass enum -passive -d example.com -src # tag each result with its source
amass enum -config config.yaml -d example.com # use API keys for more sources
Intel (find the attack surface first)
amass intel -d example.com -whois # related domains via reverse WHOIS
amass intel -org "Example Inc" # domains tied to an org name
amass intel -asn 65001 # enumerate a whole ASN
amass intel -cidr 203.0.113.0/24 # seed from a network block
Working with stored results
amass db -names -d example.com # list stored names for a domain
amass db -show -d example.com # full findings from the graph db
References
- OWASP Amass on GitHub
- User guide & tutorials
- Faster first pass: subfinder.