scapy.contrib.wpa_eapol module

class scapy.contrib.wpa_eapol.WPA_key

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.contrib.wpa_eapol.WPA_key'>, <class 'scapy.packet.Packet'>]
answers(other)

DEV: true if self is an answer from other

extract_padding(s)

DEV: to be overloaded to extract current layer’s padding.

Parameters:s (str) – the current layer
Returns:a couple of strings (actual layer, padding)
fields_desc = [<Field (WPA_key).descriptor_type>, <Field (WPA_key).key_info>, <Field (WPA_key).len>, <Field (WPA_key).replay_counter>, <Field (WPA_key).nonce>, <Field (WPA_key).key_iv>, <Field (WPA_key).wpa_key_rsc>, <Field (WPA_key).wpa_key_id>, <Field (WPA_key).wpa_key_mic>, <Field (WPA_key).wpa_key_length>, <Field (WPA_key).wpa_key>]
hashret()

DEV: returns a string that has the same value for a request and its answer.