A lightweight command-line tool to identify whether an IP address belongs to a known cloud provider using offline CIDR database lookups.
Built on top of:
cloudip-cli converts the go-cloudip library into a simple terminal command for quick IP ownership checks during passive reconnaissance and asset enrichment.
- Offline cloud IP detection
- Fast CIDR lookup using Patricia trie
- No active scanning
- No connection to the target IP
- Supports IPv4 and IPv6 ranges
- Displays:
- Cloud provider
- Region
- Service
- Matched CIDR
Supported providers depend on the upstream database:
AWS
GCP
Cloudflare
Azure
DigitalOcean
Oracle Cloud
Useful for:
- Passive reconnaissance
- Asset enrichment
- Cloud ownership identification
- Bug bounty recon workflows
- Security automation pipelines
Install Go:
sudo apt install golangCheck:
go versionClone the repository:
git clone https://github.com/Sanushi-Salgado/cloudip-cli.git
cd cloudip-cliFix line endings if required:
dos2unix main.goBuild:
go build -o cloudip-cliTest:
./cloudip-cli <IP address>Copy the binary into your system PATH:
sudo cp ~/cloudip-cli/cloudip-cli /usr/local/bin/Make executable:
sudo chmod +x /usr/local/bin/cloudip-cliVerify:
which cloudip-cliExpected:
/usr/local/bin/cloudip-cli
Now run from anywhere:
cloudip-cli <IP address>Basic lookup:
cloudip-cli <IP address>cloudip-cli/
|
├── main.go
├── go.mod
├── go.sum
└── cloudip-cli
Install dependency:
go get github.com/rezmoss/go-cloudip@latestBuild:
go build -o cloudip-cli- Detection depends on the upstream cloud IP database.
- Not every hosting provider publishes complete IP ranges.
- Absence of a match does not mean the IP is not hosted in the cloud.
Library:
Cloud IP data:
This tool is intended for authorized security testing and educational purposes only.
- Do not use against systems without permission
- Follow responsible disclosure practices
- Respect program policies