Netdomain
Netdomain is a command-line tool that allows you to search for subdomains of a specific domain using the Netlas API.
Installation
To install Netdomain, make sure you have Go installed on your system. Then, run the following command:
go install github.com/kenjoe41/netdomain@latest
Usage
To use Netdomain, you will need an API key from Netlas. You can sign up for an API key on their website.
Once you have your API key, you can run Netdomain using the following command:
netdomain -d <domain> -apikey <API_KEY>
Where <domain>
is the domain you want to search for subdomains of, and <API_KEY>
is your Netlas API key.
Optional Flags
-of <OUTPUT_FILE>
: Specify an output file for the results. If this flag is not provided, the results will be printed to stdout.
-silent
: Run in silent mode, which suppresses stdout output.
Examples
Search for subdomains of example.com
and print the results to stdout:
netdomain -d example.com -apikey YOUR_API_KEY
Search for subdomains of example.com
and write the results to a file called output.txt
:
netdomain -d example.com -apikey YOUR_API_KEY -of output.txt
Search for subdomains of example.com
and write to file in silent mode (no stdout):
netdomain -d example.com -apikey YOUR_API_KEY -of output.txt -silent
Contributing
- Fork the repository
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
License
Netdomain is released under the MIT License. See LICENSE for more details.