AS CIDR Fetcher is a Python script that retrieves CIDRs (Classless Inter-Domain Routing) associated with a specified Autonomous System (AS) number using RIPEstat's API. It allows you to quickly fetch and save CIDRs to a text file for further analysis or use.
- Ensure you have Python installed on your system.
- Clone the repository to your local machine.
- Navigate to the directory containing the script.
- Run the script using the following command:
python script.py -n AS****Replace AS**** with the desired Autonomous System (AS) number.
- Python 3.x
- Requests library (
pip install requests)
-n, --asn: Specifies the AS number for which CIDRs need to be fetched.
python script.py -n AS12345This will fetch CIDRs associated with the AS number AS12345 and save them to a text file named AS12345.txt.
This project is not licensed, and you are free to use, modify, and distribute it as you wish.
- This script utilizes the RIPEstat API for retrieving AS CIDRs.