Logo Search packages:      
Sourcecode: scapy version File versions  Download package

scapy::IPCountryKnowledgeBase Class Reference

Inheritance diagram for scapy::IPCountryKnowledgeBase:

scapy::KnowledgeBase

List of all members.


Detailed Description

IP location database ##.

How to generate the base :
db = []
for l in open("GeoIPCountryWhois.csv").readlines():
s,e,c = l.split(",")[2:5]
db.append((int(s[1:-1]),int(e[1:-1]),c[1:-1]))
cPickle.dump(gzip.open("xxx","w"),db)

Definition at line 8158 of file scapy.py.


Public Member Functions

def __init__
def get_base
def lazy_init
def reload

Public Attributes

 base
 filename

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index