https://github.com/halukyamaner/asn-lookup
ASN Lookup
https://github.com/halukyamaner/asn-lookup
asn asn-lookup ipwhois whois whois-lookup
Last synced: 7 months ago
JSON representation
ASN Lookup
- Host: GitHub
- URL: https://github.com/halukyamaner/asn-lookup
- Owner: halukyamaner
- Created: 2024-09-05T09:19:11.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-05T09:21:19.000Z (about 1 year ago)
- Last Synced: 2025-01-18T02:28:02.619Z (9 months ago)
- Topics: asn, asn-lookup, ipwhois, whois, whois-lookup
- Language: Python
- Homepage: https://www.halukyamaner.com
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ASN Lookup
## Overview
ASN Lookup is a Python library that resolves IP addresses and performs Autonomous System Number (ASN) lookups. Utilizing RDAP and WHOIS, this library provides detailed information about network allocation, country codes, and other relevant data. It is ideal for cybersecurity assessments, network analysis, and educational purposes in network management.## Features
- **Domain and IP Resolution**: Automatically resolves domain names to IP addresses and validates IP inputs.
- **Detailed ASN Lookups**: Leverages RDAP and WHOIS to fetch extensive details about the ASN and its associated network.
- **Error Handling**: Gracefully manages errors, offering clear feedback on input validation and lookup failures.## Requirements
- Python 3.x
- `ipwhois` module (version 1.2.0 or higher)## Usage
To perform an ASN lookup, simply provide an IP address or a domain name. The library will handle the resolution of the domain to an IP, if necessary, and then carry out the ASN lookup.```bash
python ip_asn_lookup_script.py