Skip to content

h4r1337/bgpasn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

BGP-ASN

Collects all ip ranges from bgp.he.net of a given ASN.

Usage

  • Run this if you want to add to path:
chmod +x bgpasn.py
sudo ln -s $(pwd)/bgpasn.py /usr/bin/bgpasn
  • Retrieves IP ranges from ASN:
bgpasn -a <ASXXXX> # Enter the ASN number here

# Also accepts input from stdin
echo "<ASXXXX>" | bgpasn
  • To include IPv6 ranges in the output add the -v6 flag
bgpasn -a <ASXXXX> -v6

Note: The tool will copy all the output to system clipboard by default.

About

ASN to IP range scraper from bgp.he.net

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages