mirror of
https://github.com/C24Be/AS_Network_List.git
synced 2026-01-25 07:26:59 +03:00
ac8814be7ace21c6f1a8e5821ca4a83e87afcbbc
Get network lists from AS name or Network name
Description
- If you know AS name, use the script
network_list_from_as.pyto get the list of networks. - If you know the network name, use the script
network_list_from_netname.pyto get the list of networks.
Note: This scripts 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 of the network_list_from_as.py script
-
Run the script with the AS number as an argument:
./network_list_from_as.py AS61280 -
To disable all output except the prefixes, use the
--quietor-qswitch:./network_list_from_as.py AS61280 -q -
To print a help message, use the
-hor--helpswitch:./network_list_from_as.py --help
Usage of the network_list_from_netname.py script
-
Run the script with the list of network names in a file as an argument:
./network_list_from_netname.py files/blacklist4.txt -
Run the script with the list of network names in the github repository as an argument:
./network_list_from_netname.py https://github.com/AntiZapret/antizapret/blob/master/blacklist4.txtor better use the raw file link:
./network_list_from_netname.py https://raw.githubusercontent.com/AntiZapret/antizapret/master/blacklist4.txt -
To print a help message, use the
-hor--helpswitch:./network_list_from_netname.py --help
Screenshots
Description
Blacklists generator of subnets of Russian government agencies for blocking them on one's servers.
Languages
Python
69.2%
Shell
30.8%