-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Simon Xie edited this page Jun 8, 2016
·
2 revisions
#Welcome to the opsPyKit wiki!
This Kill includes useful python scripts for ops routine work.
C:\Users\simon>asn.py 8.8.8.8
Queried 8.8.8.8:
AS | IP | AS Name
15169 | 8.8.8.8 | GOOGLE - Google Inc., US
It's simply querying cymru.com
Just run the script directly, it'll check your outbond put ip and shows location, ISP, pub IP info in the output
e.g.
[c:\~]$ myip.py
北京市 电信通
xxx.xxx.xxx.xxx
The ip_location.py basically has 2x ways to run:
$ ip_location.py
NOTE:
1. single ip as argv:
ip_location.py 8.8.8.8
2. stdin a list of IPs with -s parm:
cat list| ip_location.py -s
Limitation When querying in batch with -s, The system will automatically ban any IP addresses doing over 150 requests per minute. To unban your IP go to ip-api.
This is simply a alternative way for telnet command. It shows the IP queried and the result of accessibility.
C:\Users\simon>portest.py www.google.com:25
216.58.197.100
failed
C:\Users\simon>portest.py www.baidu.com:443
119.75.217.109
ok