mirror of
https://github.com/C24Be/AS_Network_List.git
synced 2026-01-25 23:35:41 +03:00
fa40cde6916f0bab3634c4f7d14850ae982a23ac
AS Network List
Description
This Python script retrieves and prints the network prefixes announced by a specified Autonomous System (AS). It leverages the RIPE Stat Data API to fetch the data.
Note: This script has been tested on MacOS and Linux.
Prerequisites
- Python 3: You can download it from the official website.
Installation
-
Clone this repository:
git clone https://github.com/C24Be/AS_Network_List.git -
Navigate to the repository folder:
cd AS_Network_List -
Install the required Python packages:
./requirements.sh
Usage
-
Run the script with the AS number as an argument:
python as_network_list.py AS61280 -
To disable all output except the prefixes, use the
--quietor-qswitch:python as_network_list.py AS61280 --quiet -
To print a help message, use the
-hor--helpswitch:python as_network_list.py --help
Screenshot
Description
Blacklists generator of subnets of Russian government agencies for blocking them on one's servers.
Languages
Python
69.2%
Shell
30.8%