Module Expr Str ImportFrom alias ImportFrom alias Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Dict While Num body Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Break Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Str If CompareNotEq Call NameLoad NameLoad Num body Continue Assign TupleStore NameStore NameStore NameStore NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Call AttributeLoad NameLoad attr Str Assign NameStore BinOpAdd BinOpAdd BinOpAdd SubscriptLoad NameLoad Index Num BinOpLShift SubscriptLoad NameLoad Index Num Num BinOpLShift SubscriptLoad NameLoad Index Num Num BinOpLShift SubscriptLoad NameLoad Index Num Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore BinOpSub Call NameLoad NameLoad Num While CompareGt BinOpSub NameLoad NameLoad Num body Assign NameStore BinOpDiv BinOpAdd NameLoad NameLoad Num If CompareGt NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num body Assign NameStore NameLoad orelse Assign NameStore NameLoad Assign TupleStore NameStore NameStore NameStore SubscriptLoad NameLoad Index NameLoad If BoolOpAnd CompareLtE NameLoad NameLoad CompareLtE NameLoad NameLoad body Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr
N/A N/A 
GeoIP: find out the geographical location of IP addresses
 scapy.data KnowledgeBase scapy.config conf N/A N/A conf IPCountry_base GeoIPCountry4Scapy.gz N/A N/A conf countryLoc_base countryLoc.csv IPCountryKnowledgeBase N/A KnowledgeBase N/A N/A 
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)
 lazy_init N/A N/A self N/A N/A N/A N/A self base N/A load_object N/A self filename N/A N/A CountryLocKnowledgeBase N/A KnowledgeBase N/A lazy_init N/A N/A self N/A N/A N/A f N/A open N/A self filename N/A N/A self base N/A N/A 1 N/A N/A l N/A N/A f readline N/A N/A l N/A N/A N/A l N/A N/A N/A N/A l strip split , N/A N/A N/A len l 3 N/A N/A N/A N/A c lat long l N/A N/A N/A self base N/A c N/A N/A float long N/A float lat N/A N/A N/A f close N/A N/A locate_ip N/A N/A ip N/A N/A N/A Get geographic coordinates from IP using geoip database N/A ip N/A map int N/A N/A ip split . N/A ip N/A N/A N/A N/A ip N/A 3 N/A N/A ip N/A 2 8 N/A N/A ip N/A 1 16 N/A N/A ip N/A 0 24 N/A cloc N/A N/A country_loc_kdb get_base N/A db N/A N/A IP_country_kdb get_base N/A d 0 N/A f N/A N/A len db 1 N/A N/A N/A f d 1 N/A N/A guess N/A N/A d f 2 N/A N/A ip N/A N/A db N/A guess N/A 0 N/A N/A d guess N/A N/A f guess N/A N/A s e c N/A db N/A guess N/A N/A N/A s ip N/A ip e N/A N/A N/A N/A cloc get c None N/A N/A N/A conf commands register N/A N/A conf IP_country_kdb N/A IPCountryKnowledgeBase N/A conf IPCountry_base N/A N/A conf country_loc_kdb N/A CountryLocKnowledgeBase N/A conf countryLoc_base