CLI
Chaos is a command-line tool that helps you find subdomains of a domain. It is a client to communicate with the Chaos dataset API and it's written in Go.
Installation
To install the Chaos client, you can use the following command:
go install -v github.com/projectdiscovery/chaos-client/cmd/chaos@latest
You must have installed Golang on your system before running the above command.
Authentication
You must have a valid Chaos API key to use the Chaos client.
You can authenticate the CLI using the Chaos API key, check the Authentication section for more details.
Fetch Subdomains
To fetch subdomains of a domain, you can use the following command:
chaos -d uber.com -silent
*.uber.com
*.cfe.uber.com
1.dev.uber.com
10ccc.mx.dev.uber.com
10yuantiyanjinshishicai.mx.dev.uber.com
11avav.mx.dev.uber.com
...
The flag
-silent
is used to make the output silent.Count Subdomains
To count the number of subdomains of a domain, you can use the following command:
chaos -d uber.com -silent -count
9948
Input File
To fetch subdomains for multiple domains which are listed in a file, you can use the following command:
chaos -dL domains.txt -silent
Output File
To write the output to a file, you can use the following command:
chaos -d uber.com -silent -o uber.txt
Output as JSON
To get the output as JSON, you can use the following command:
chaos -d uber.com -silent -json
{"domain":"uber.com","subdomains":["*","*.cfe","1.dev",...
Help screen
To view the help screen, run the following command:
chaos -h
Usage:
chaos [flags]
Flags:
-key string projectdiscovery cloud (pdcp) api key
-d string domain to search for subdomains
-count show statistics for the specified domain
-silent make the output silent
-o string file to write output to (optional)
-dL string file containing domains to search for...
-json print output as json
-version show version of chaos
-v, -verbose verbose mode
-up, -update update chaos to latest version
-duc, -disable-update-check disable automatic chaos update check