Skip to content

Checks whether a domain is hosted on a cloud service such as AWS, Azure or CloudFlare

Notifications You must be signed in to change notification settings

MantisSTS/GoCloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoCloud

If you need to find out whether a domain resolves to a cloud-hosted service such as AWS, Azure, Google Cloud, Cloudflare, etc, then you can put all of the domains into a file and run GoCloud which will let you know whether they resolve to a cloud service.

Install

git clone https://github.com/MantisSTS/GoCloud.git
cd GoCloud
go build .
./GoCloud -df domains.txt

Supported Cloud Services

The following Cloud Services are currently supported:

  • Google Cloud
  • Cloudflare
  • Amazon Web Services (AWS)
  • Microsoft Azure

Requirements

This tool was written and tested on go version go1.19.4

Usage

Nameservers

You can specify a set of nameservers nameservers.txt to use which may be useful if you have many domains to check.

Latest Cloud IPs

Run the program with the -update flag to download the latest IP ranges. This isn't done every time to save time on each run.

./GoCloud -update 

Usage

Put all the domains into a file (domains.txt for example) and run the program:

./GoCloud -df domains.txt 

You can also pipe the domains into GoCloud:

cat domains.txt | ./GoCloud -t 100

Output to File

GoCloud will output the results to a JSON file when using the -o flag:

./GoCloud -df domains.txt -nf nameservers.txt -o results.json

image

Todo

  1. Merge all the IP ranges per service instead of having multiple entries. I know why this happens but just need to fix it

Special Thanks

@D3T3CH - Reporting bugs to me so I can fix them for everyone

About

Checks whether a domain is hosted on a cloud service such as AWS, Azure or CloudFlare

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages