Fixed
This commit is contained in:
parent
6fca113ea3
commit
873283e72d
4
main.py
4
main.py
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user