This repository contains Python scripts that allow you to retrieve network lists based on either an Autonomous System (AS) name or a Network name. Also you can download and parse the whole RIPE database to get information about Networks for the further analysis.
- Look at compiled blacklists in the folder
blacklists/
- Look at other network and ASN lists in the folder
auto/
-
network_list_from_as.py
: Retrieves a list of networks associated with a given AS name. -
network_list_from_netname.py
: Retrieves a list of networks associated with a given Network name. -
get_info_from_ripe.py
: Retrieves information about Russian AS numbers and Networks from RIPE database for the further analysis. -
get_description.py
: Retrieves network names, AS names and organisation names from RIPE. Updates te lists in the folderauto/
. -
parse_ripe_db.py
: Parses the whole RIPE database to get information about Networks for the further analysis. -
Contributors are welcome!
lists/ru-gov-netnames.txt
: A list of network names associated with the Russian government.lists/ru-gov-asns.txt
: A list of AS numbers associated with the Russian government.
-
blacklist_updater.sh
: Static blacklist updater. -
blacklists/blacklist.txt
: Static daily generated blacklist! -
blacklists/blacklist_with_comments.txt
: Static daily generated blacklist with comments! -
auto/all-ru-*.txt
: Static monthly generated lists of Russian networks and ASNs! -
auto/ripe-ru-*.txt
: Static weekly generated lists of Russian networks from RIPE database!
![image](https://private-user-images.githubusercontent.com/153936414/309224022-2ec89fa9-b39a-416d-b1a1-20ddc89377ed.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAwNDU4NjcsIm5iZiI6MTcyMDA0NTU2NywicGF0aCI6Ii8xNTM5MzY0MTQvMzA5MjI0MDIyLTJlYzg5ZmE5LWIzOWEtNDE2ZC1iMWExLTIwZGRjODkzNzdlZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzAzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcwM1QyMjI2MDdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00Nzc0ZTkwNmI4OTA1ZGZjODhhNWZkZTgwNjMyMGEyYmQ2N2I2OTkyYWZjNjYxNjQ5NTUwYzdlMzQzMGZhNDk2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.38K-775PsdYkKF8J_DOw71Q0nJFjR9R16fwfKWu17U8)
These scripts have been tested on MacOS, FreeBSD and Linux.
- Python 3: Download it from the official website.
-
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
If this step causes issue
PEP 668
due to python version >=3.12 and you're unfamiliar with virtual environments, use this workaround:pip install -r requirements.txt --break-system-packages
-
Run the script with the AS number as an argument:
./network_list_from_as.py AS61280
-
Run the script with a URL to a file in a GitHub repository as an argument:
./network_list_from_as.py https://github.com/C24Be/AS_Network_List/blob/main/lists/ru-gov-asns.txt
Or better use the raw file link:
./network_list_from_as.py https://raw.githubusercontent.com/C24Be/AS_Network_List/main/lists/ru-gov-asns.txt
-
To display a help message, use the
-h
or--help
switch:./network_list_from_as.py --help
-
Run the script with a file containing a list of network names as an argument:
./network_list_from_netname.py lists/ru-gov-netnames.txt
-
Run the script with a URL to a file in a GitHub repository as an argument:
./network_list_from_netname.py https://github.com/C24Be/AS_Network_List/blob/main/lists/ru-gov-netnames.txt
Or better use the raw file link:
./network_list_from_netname.py https://raw.githubusercontent.com/C24Be/AS_Network_List/main/lists/ru-gov-netnames.txt
-
To display a help message, use the
-h
or--help
switch:./network_list_from_netname.py --help
![image](https://private-user-images.githubusercontent.com/153936414/309222267-71bd0ed4-0e9b-42f0-8e91-01964ea9b8e1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29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U0E1M1BRSzRaQSUyRjIwMjQwNzAzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcwM1QyMjI2MDdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yYTFiODExMzkwNWFhNmZkMmYxNGVlYjIwNDBmMGU3ZGI3ODU4YWFkMDM4MTlmZDc2NzFlZDA3MzAyZmE3MmQwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.rDbJguTndkdNjawzJ-l8ptRL2u0i22aot1I0mZ8_gq4)
We are welcome contributions! Feel free to submit a pull request or open an issue.