Friday, October 14, 2016

script to query asn (autonomous system number)

the link to download it,

https://drive.google.com/file/d/0B-tTCNzFT6pseF9HWDZTSnNwU2s/view?usp=sharing

file structure

$ tree asquery
asquery
├── asn.html
├── asquery.py
├── data.sqlite
├── __init__.py
└── sqlite3file.py


0 directories, 5 files



1- usage: supply it with one asn or a list of asn like below

$ python asquery.py 7474 7473 as3491 55329 24492
7474 : OPTUSCOM-AS01-AU SingTel Optus Pty Ltd, AU
7473 : SINGTEL-AS-AP Singapore Telecommunications Ltd, SG
as3491 : BTN-ASN - Beyond The Network America, Inc., US
55329 : TELCOTECH-KH Telcotech Ltd., KH
24492 : IIT-WICAM-AS-AP WiCAM Corporation, LTD, KH


-snapshot of command above

No comments:

Post a Comment