Esempio n. 1
0
 def __init__(self, network_interface, frames_queue, bpf_filter=None):
     WigProcess.__init__(self)
     self.__network_interface__ = network_interface
     self.__frames_queue__ = frames_queue
     self.__filter__ = bpf_filter
     self.__stop__ = Event()
     self.__ieee80211_frame_offset__ = None
     self.__open_network_interface__()
     self.__set_datalink__()
Esempio n. 2
0
 def __init__(self, pcap_filename, frames_queue, bpf_filter=None):
     WigProcess.__init__(self)
     self.__pcap_filename__ = pcap_filename
     self.__frames_queue__ = frames_queue
     self.__filter__ = bpf_filter
     self.__stop__ = Event()
     self.__datalink__ = None
     self.__open_pcap_file__()
     self.__set_datalink__()
Esempio n. 3
0
    def __init__(self, frames_queue, output_queue, injection_queue=None):
        WigProcess.__init__(self)
        self.__stop__ = Event()

        self.__queue__ = frames_queue
        self.__output__ = output_queue

        self.decoder = ImpactDecoder.Dot11Decoder()
        self.decoder.FCS_at_end(False)

        self.__devices__ = dict()
Esempio n. 4
0
    def __init__(self, frames_queue, output_queue, injection_queue=None):
        WigProcess.__init__(self)
        self.__stop__ = Event()

        self.__queue__ = frames_queue
        self.__output__ = output_queue
        self.__total_frames_count__ = 0
        self.__type_management_count__ = 0
        self.__type_control_count__ = 0
        self.__type_data_count__ = 0
        self.__type_unknown_count__ = 0
Esempio n. 5
0
    def __init__(self, frames_queue, output_queue, producer_type, injection_queue=None):
        WigProcess.__init__(self)
        self.__queue__ = frames_queue
        self.__output_queue__ = output_queue
        self.__injection_queue__ = injection_queue

        self.__stop__ = Event()

        self.__producer_type__ = producer_type
        self.__timeout_event__ = Event()

        self.consumers_list = [FramesStats,
                               InformationElementsStats,
                               CiscoClientExtensions,
                               WiFiProtectedSetup,
                               WiFiDirect,
                               HewlettPackardVendorSpecificTypeZero,
                               AppleWirelessDirectLink]
Esempio n. 6
0
 def __init__(self, input_queue, ifaces):
     WigProcess.__init__(self)
     self.__stop__ = Event()
     self.__ifaces__ = ifaces
     self.__queue__ = input_queue
Esempio n. 7
0
 def __init__(self, output_queue):
     WigProcess.__init__(self)
     self.__stop__ = Event()
     self.__queue__ = output_queue
Esempio n. 8
0
 def __init__(self, queue):
     WigProcess.__init__(self)
     self.__queue__ = queue
     self.mac_address = "\x00\x00\xde\xad\xbe\xef"
     self.channel = 1