This commit is contained in:
Benjamyn 2018-02-04 19:35:15 -05:00
parent 6fca113ea3
commit 873283e72d

View File

@ -19,6 +19,7 @@ def splitLine(fileline):
return tmpline
def lookup(ip):
try:
net = Net(ip)
obj = IPASN(net)
results = obj.lookup()
@ -28,7 +29,8 @@ def lookup(ip):
print(value)
if key == "asn_cidr":
print(value)
except Exception as e:
print(e)
ipListFile = openFile("iplist.txt")
ipList = ipListFile.read()