Simple library to check if a hostname belongs to AWS IP space.
Project description
onaws
onaws
is a simple tool to check if an IP/hostname belongs to the AWS IP space or not. This has multiple applications:
- Continuous recon of assets
- Gather assets using a specific service (e.g. EC2)
- Finding region information for S3 buckets
- ... etc.
Install
pip install onaws
Usage
Given an IP:
onaws 52.219.47.34
Given a hostname:
A domain or subdomain can be passed as input:
onaws example.com
You may also supply an S3 bucket hostname as input:
onaws dropbox.s3.amazonaws.com
Output
If the IP/hostname falls in the AWS IP range, onaws
will return the service, region and other details in the output:
{
"is_aws_ip": true,
"ip_address": "52.218.196.155",
"service": "S3",
"region": "us-west-2",
"matched_subnet": "52.218.128.0/17",
"hostname": "flaws.cloud"
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
onaws-0.0.12.tar.gz
(4.7 kB
view hashes)
Built Distributions
onaws-0.0.12-py3-none-any.whl
(4.8 kB
view hashes)
Close
Hashes for onaws-0.0.12-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6846e8dfb58c5e4c8b51a830c588190b24f4b4ff3fc605c0594174bd540ef4e1 |
|
MD5 | 71ac3a237ae6b13d5d9a578d3ba5df82 |
|
BLAKE2b-256 | 9a4e705fa5ee1f29c82634707cca838e01d6243d6b3ecc9eabc53e86af54619e |