@@ -162,10 +162,10 @@ def regexp(keys, field_table, data_list):
162162 return result
163163
164164
165- def filter_search_data (keys , field_table , data ):
165+ def filter_search_data (datakeys , field_table , data ):
166166 """
167167 get the data of the corresponding field
168- :param keys : list, user input field
168+ :param datakeys : list, user input field
169169 :param field_table: dict, fileds
170170 :param data: list, zoomeye api data
171171 :return: list, ex: [[1,2,3...],[1,2,3...],[1,2,3...]...]
@@ -174,7 +174,7 @@ def filter_search_data(keys, field_table, data):
174174 for d in data :
175175 item = []
176176 zmdict = ZoomEyeDict (d )
177- for key in keys :
177+ for key in datakeys :
178178 if field_table .get (key .strip ()) is None :
179179 support_fields = ',' .join (list (field_table .keys ()))
180180 show .printf ("filter command has unsupport fields [{}], support fields has [{}]"
@@ -259,7 +259,7 @@ def process_filter(fields, data, tables):
259259 return result_data , has_equal , not_equal
260260
261261
262- class Cache :
262+ class Cache :#用于缓存从API获取的数据或从本地文件中读取数据
263263 """
264264 used to cache the data obtained from the api to the local,
265265 or directly clip the file from the local.
@@ -333,7 +333,7 @@ def update(self):
333333 pass
334334
335335
336- class CliZoomEye :
336+ class CliZoomEye :#处理与ZoomEye搜索相关的功能,如默认显示、过滤、统计等
337337
338338 def __init__ (self , dork , num , resource , facet = None , force = False ):
339339 self .dork = dork
@@ -586,7 +586,7 @@ def count(self):
586586 show .printf (self .total )
587587
588588
589- class HistoryDevice :
589+ class HistoryDevice :#处理获取主机历史数据的功能
590590 """
591591 obtain the user's identity information and determine whether to use the IP history search function
592592 """
@@ -704,7 +704,7 @@ def filter_fields(self, fields):
704704 show .print_filter_history (not_equal , result_data [:self .num ], has_equal )
705705
706706
707- class IPInformation :
707+ class IPInformation :#用于查询特定IP地址的信息
708708 """
709709 query IP information
710710 """
@@ -736,17 +736,17 @@ def filter_information(self, filters):
736736 result_data , has_equal , not_equal = process_filter (filters , info_data , fields_ip )
737737 if len (result_data ) == 0 :
738738 return
739- for item in not_equal :
740- if fields_ip .get (item .strip ()) is None :
739+ for items in not_equal :
740+ if fields_ip .get (items .strip ()) is None :
741741 support_fields = ',' .join (list (fields_ip .keys ()))
742742 show .printf (
743- "filter command has unsupport fields [{}], support fields has [{}]" .format (item , support_fields ),
743+ "filter command has unsupport fields [{}], support fields has [{}]" .format (items , support_fields ),
744744 color = 'red' )
745745 exit (0 )
746746 show .print_info_filter (not_equal , result_data , has_equal )
747747
748748
749- class DomainSearch :
749+ class DomainSearch :#用于查询相关域名或子域名
750750 """
751751 query relation domain or sub domain
752752 """
0 commit comments