ServiceScan is a command-line tool written in Go that helps you find subdomains and their CNAME records for a given domain and highlight subdomains using third-party services. It uses the net package to perform DNS lookups and can utilize assetfinder to discover subdomains.
- Subdomain enumeration for a single domain using
net.LookupCNAME. - Subdomain enumeration for a single domain using
assetfinder(optional flag). - Subdomain enumeration for multiple domains using a file (each domain in a separate line).
- Identification of third-party CNAMEs.
-
Install Go on your machine if you haven't already. You can download it from the official website: https://golang.org/dl/
-
Clone the repository:
git clone https://github.com/your-username/ServiceScan.git cd ServiceScan -
Build the executable:
go build
To perform subdomain enumeration for a single domain, use the -d flag followed by the domain name. By default, the tool will use net.LookupCNAME to find subdomains.
./ServiceScan -d example.comTo use assetfinder for subdomain enumeration, include the -assetfinder flag:
./ServiceScan -d example.com -assetfinderCreate a text file (e.g., domains.txt) with each domain in a separate line. Then, use the -f flag followed by the file name to enumerate subdomains for multiple domains.
./ServiceScan -f domains.txtThe tool will display the subdomains along with their CNAME records. Third-party CNAMEs will be highlighted in red.
This project is licensed under the MIT License - see the LICENSE file for details.
- The tool uses the
assetfindertool for subdomain enumeration. Check it out here: https://github.com/tomnomnom/assetfinder
Contributions are welcome! Feel free to open issues or submit pull requests.
This tool is intended for legal and authorized use only. Always ensure that you have permission to scan and analyze the target domain's subdomains before using this tool. The authors are not responsible for any misuse or illegal activities.
Remember to replace `<your-username>` in the installation section with your GitHub username.
Feel free to customize the README to suit your tool's specific features and requirements. The README serves as the first point of contact for users and potential contributors, so make sure to include enough information to help them understand your tool and how to use it.