A bash script to solve intern domains of a given url:
- Ping host from url
- Download index page
- Filter index page to get subdomains
- Solve subdomains through host command
- Output host's ips
-s | --separator
: The separator to be used in output. The output is<domain> <separator> <ip>
.-c | --contains
: The program will output only the domains that contains the specified string.-o | --output-file
: Specify the output file to program.-v | --verbose
: Set operation mode to verbose, note that this can not be used together with--quiet
.-q | --quiet
: Set operation mode to quiet, note that this can not be used together with--verbose
.-V | --version
: Outputs relevant information about the script.
- Give permition for the file:
chmod +x domain-explorer.sh
./domain-explorer.sh www.fbi.gov --output-file fbi-domains.txt
: This will parse the information and store infbi-domains.txt
../domain-explorer.sh www.github.com -s '::::'
: This will parse the information and use::::
as a separator for domain and ip../domain-explorer.sh thehackernews.com --contains 'history'
: This will parse the information but only output domains that containshistory
in the url.