![]() ![]() ![]() Source, destination, destination_port, data = parseExportedPdu(packet) # The packets start with a Wireshark exported PDU structure Logging.getLogger("scapy").setLevel(logging.ERROR) Logging.basicConfig(level=logging.CRITICAL) Pcap_path = "test/files/test_session.pcap" If arp_packet.hwsrc = _address and \Īrp_packet.hwdst = _address and \Īrp_packet.psrc = 4_address and \Īrp_packet.pdst = 4_address and \Īrp_packet.hwdst = '00:00:00:00:00:00' and \ _info('ARP target IP: ', arp_packet.pdst) _info('ARP sender IP: ', arp_packet.psrc) _info('ARP target MAC: ', arp_packet.hwdst) _info('ARP sender MAC: ', arp_packet.hwsrc) _info('ARP opcode: ', str(arp_packet.op)) Packets = rdpcap(self.tshark_pcap_filename) Self.assertTrue(isfile(self.tshark_pcap_filename)) _process_by_name(process_name='tshark.exe') ![]() Popen(command, shell=True, stdout=PIPE, stderr=STDOUT) Popen(, shell=True, stdout=PIPE, stderr=STDOUT) 4_address, _address,Ĭommand = _executable \ Self.thread_manager.add_task(arp_spoof.start, 4_address, ("No valid handshake frames exists")Īrp_spoof: ArpSpoof = ArpSpoof(network_interface=_interface) If pkt.haslayer(dot11.Dot11) and not pkt.FCfield
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |