Skip to content

Script to check if certain prefix exists in the Internet

Notifications You must be signed in to change notification settings

frankiexyz/routeview_loop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

routeview_loop

Script to check if certain prefix exists in the Internet

Install

pip install -r requirements.txt

RUN

○ → python routeview.py  -h
usage: routeview.py [-h] -r PREFIX -a ASN -s SLEEP [--random] -t TRANSIT

optional arguments:
  -h, --help            show this help message and exit
  -r PREFIX, --prefix PREFIX
                        Check ipv4 route in routing table
  -a ASN, --asn ASN     ASN that we want to check
  -s SLEEP, --sleep SLEEP
                        Sleep for how long
  --random              Pick a routeview server randomly
  -t TRANSIT, --transit TRANSIT
                        A list of transit asns eg: '174,1299,3356,5511,3257,29
                        14,7922,1221,4637,6762,12956'

○ → python routeview.py  -r 1.1.1.0/24 -a 13335 -s 30 -t '174,1299,3356,5511,3257,2914,7922,1221,4637,6762,12956'
[14:16:16] connecting to routeview                                                                                                                                                                    routeview.py:64
[14:16:17] sending username                                                                                                                                                                           routeview.py:67
           connected to routeview                                                                                                                                                                     routeview.py:70
[14:16:19] transit path:9 unique transit:{'1221', '2914', '3257', '3356'}                                                                                                                             routeview.py:57
           peering path:19                                                                                                                                                                            routeview.py:60

About

Script to check if certain prefix exists in the Internet

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages