Exploit databaseDownload repository ZIP
GH-ab59c5d71d32e2728bf6d286edb5d440
joxeankoret/cve-2017-7494
Sources for CVE-2017-7494
38 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files43
joxeankoret/cve-2017-7494Revision daee837290a6
- ↑..Parent directory
- dcerpc/
- examples/
- krb5/
- ldap/
- testcases/
- Dot11Crypto.py
- Dot11KeyManager.py
- ICMP6.py
- IP6.py
- IP6_Address.py
- IP6_Extension_Headers.py
- ImpactDecoder.py
- ImpactPacket.py
- NDP.py
- __init__.py
- cdp.py
- crypto.py
- dhcp.py
- dns.py
- dot11.py
- eap.py
- ese.py
- helper.py
- hresult_errors.py
- mqtt.py
- nmb.py
- nt_errors.py
- ntlm.py
- pcap_linktypes.py
- pcapfile.py
- smb.py
- smb3.py
- smb3structs.py
- smbconnection.py
- smbserver.py
- spnego.py
- structure.py
- system_errors.py
- tds.py
- uuid.py
- version.py
- winregistry.py
- wps.py
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
impacket/Dot11KeyManager.py
Python · 1,563 bytes# Copyright (c) 2003-2016 CORE Security Technologies
#
# This software is provided under under a slightly modified version
# of the Apache Software License. See the accompanying LICENSE file
# for more information.
#
# Description:
# IEEE 802.11 Network packet codecs.
#
# Author:
# Gustavo Moreira
from array import array
class KeyManager:
def __init__(self):
self.keys = {}
def __get_bssid_hasheable_type(self, bssid):
# List is an unhashable type
if not isinstance(bssid, (list,tuple,array)):
raise Exception('BSSID datatype must be a tuple, list or array')
return tuple(bssid)
def add_key(self, bssid, key):
bssid=self.__get_bssid_hasheable_type(bssid)
if not bssid in self.keys:
self.keys[bssid] = key
return True
else:
return False
def replace_key(self, bssid, key):
bssid=self.__get_bssid_hasheable_type(bssid)
self.keys[bssid] = key
return True
def get_key(self, bssid):
bssid=self.__get_bssid_hasheable_type(bssid)
if self.keys.has_key(bssid):
return self.keys[bssid]
else:
return False
def delete_key(self, bssid):
bssid=self.__get_bssid_hasheable_type(bssid)
if not isinstance(bssid, list):
raise Exception('BSSID datatype must be a list')
if self.keys.has_key(bssid):
del self.keys[bssid]
return True
return False