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.11.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for onaws-0.0.11-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef9d480e33bdae803a88b8e5362b02224a47ee24f8ddb8fd6675a7926c22709b |
|
MD5 | ce0e8022c5f06bbaa55d720b37261178 |
|
BLAKE2b-256 | eba9e7f06990df70af7a1d69ff9c85a2826f8dc4553511a2c6a4f77711404676 |