Linux command
amass-db 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
List
amass db -list -d [example.com]
Show
amass db -show -d [example.com] -enum [1]
Print discovered names
amass db -names -d [example.com]
Show discovered IP addresses
amass db -show -ip -d [example.com]
Export
amass db -d [example.com] -json [output.json]
Print ASN summary
amass db -summary -d [example.com]
说明
amass db queries the local graph database that stores results from previous amass enum runs. It lists past enumerations, prints their findings, exports them to JSON, and can scope queries by domain, enumeration index, and data source. The database persists discovered assets so changes between scans can be tracked and results correlated across runs.
参数
- -d _domain_
- Domain name(s) to filter by, comma-separated. May be repeated.
- -df _file_
- File containing root domain names, one per line.
- -list
- Print a numbered list of enumerations, filtered by the provided domains.
- -show
- Print results for the enumeration index and domains provided.
- -enum _index_
- Identify an enumeration via the index from -list.
- -names
- Print only the discovered DNS names.
- -ip
- Show IP addresses for discovered names.
- -ipv4
- Show only IPv4 addresses.
- -ipv6
- Show only IPv6 addresses.
- -src
- Print the data source for each discovered name.
- -summary
- Print the ASN table summary only.
- -demo
- Censor output to make it suitable for demonstrations.
- -nocolor
- Disable colorized output.
- -silent
- Disable all output during execution (useful with -json/-o).
- -config _file_
- Path to the INI configuration file.
- -dir _path_
- Path to the directory containing the graph database (default: `~/.config/amass`).
- -json _file_
- Path to a JSON output file.
- -o _file_
- Path to a text file capturing stdout/stderr.
- -h, -help
- Show the program usage message.
FAQ
What is the amass-db command used for?
amass db queries the local graph database that stores results from previous amass enum runs. It lists past enumerations, prints their findings, exports them to JSON, and can scope queries by domain, enumeration index, and data source. The database persists discovered assets so changes between scans can be tracked and results correlated across runs.
How do I run a basic amass-db example?
Run `amass db -list -d [example.com]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -d _domain_ do in amass-db?
Domain name(s) to filter by, comma-separated. May be repeated.