Files
AS_Network_List/README.md
2024-02-29 14:46:46 +01:00

1.0 KiB

AS Prefixes List Script

Description

  • This Python script retrieves and prints the prefixes announced by a specified Autonomous System (AS). It uses the RIPE Stat Data API to fetch the data.

  • Tested only on MacOS and Linux :)

Installation

  1. Make sure you have Python 3 installed. You can download it from the official website.

  2. Clone this repository:

    git clone https://github.com/C24Be/AS_Network_List.git
    
  3. Navigate to the repository folder:

    cd AS_Network_List
    
  4. Install requirements:

    ./requirements.sh
    

Usage

  1. Run the script with the AS number as an argument:

    python ASList.py AS61280
    
  2. If you want to disable all output except the prefixes, use the --quiet or -q switch:

    python ASList.py AS61280 --quiet
    
  3. If you run the script with the -h or --help switch, it will print a help message:

    python ASList.py --help