Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 536 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 536 Bytes

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.