def __init__(self, display_filter=None, only_summaries=False, eventloop=None,
decryption_key=None, encryption_type='wpa-pwd', output_file=None,
decode_as=None, tshark_path=None):
self._packets = []
self.current_packet = 0
self.display_filter = display_filter
self.only_summaries = only_summaries
self.output_file = output_file
self.running_processes = set()
self.loaded = False
self.decode_as = decode_as
self.log = logbook.Logger(self.__class__.__name__, level=self.DEFAULT_LOG_LEVEL)
self.tshark_path = tshark_path
self.debug = False
self.eventloop = eventloop
if self.eventloop is None:
self.setup_eventloop()
if encryption_type and encryption_type.lower() in self.SUPPORTED_ENCRYPTION_STANDARDS:
self.encryption = (decryption_key, encryption_type.lower())
else:
raise UnknownEncyptionStandardException("Only the following standards are supported: %s."
% ', '.join(self.SUPPORTED_ENCRYPTION_STANDARDS))
评论列表
文章目录