summaryrefslogtreecommitdiffstats
path: root/scripts/external_libs/scapy-python3-0.18/scapy/contrib/wpa_eapol.py
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-03-21 16:03:47 +0200
committerimarom <imarom@cisco.com>2016-03-21 16:03:47 +0200
commitb89efa188810bf95a9d245e69e2961b5721c3b0f (patch)
tree454273ac6c4ae972ebb8a2c86b893296970b4fa9 /scripts/external_libs/scapy-python3-0.18/scapy/contrib/wpa_eapol.py
parentf72c6df9d2e9998ae1f3529d729ab7930b35785a (diff)
scapy python 2/3
Diffstat (limited to 'scripts/external_libs/scapy-python3-0.18/scapy/contrib/wpa_eapol.py')
-rw-r--r--scripts/external_libs/scapy-python3-0.18/scapy/contrib/wpa_eapol.py35
1 files changed, 0 insertions, 35 deletions
diff --git a/scripts/external_libs/scapy-python3-0.18/scapy/contrib/wpa_eapol.py b/scripts/external_libs/scapy-python3-0.18/scapy/contrib/wpa_eapol.py
deleted file mode 100644
index 084eedd8..00000000
--- a/scripts/external_libs/scapy-python3-0.18/scapy/contrib/wpa_eapol.py
+++ /dev/null
@@ -1,35 +0,0 @@
-
-# http://trac.secdev.org/scapy/ticket/104
-
-# scapy.contrib.description = WPA EAPOL dissector
-# scapy.contrib.status = loads
-
-from scapy.packet import *
-from scapy.fields import *
-from scapy.layers.l2 import *
-
-class WPA_key(Packet):
- name = "WPA_key"
- fields_desc = [ ByteField("descriptor_type", 1),
- ShortField("key_info",0),
- LenField("len", None, "H"),
- StrFixedLenField("replay_counter", "", 8),
- StrFixedLenField("nonce", "", 32),
- StrFixedLenField("key_iv", "", 16),
- StrFixedLenField("wpa_key_rsc", "", 8),
- StrFixedLenField("wpa_key_id", "", 8),
- StrFixedLenField("wpa_key_mic", "", 16),
- LenField("wpa_key_length", None, "H"),
- StrLenField("wpa_key", "", length_from=lambda pkt:pkt.wpa_key_length) ]
- def extract_padding(self, s):
- l = self.len
- return s[:l],s[l:]
- def hashret(self):
- return chr(self.type)+self.payload.hashret()
- def answers(self, other):
- if isinstance(other,WPA_key):
- return 1
- return 0
-
-
-bind_layers( EAPOL, WPA_key, type=3)