a
    kÄ#di  ã                   @   s0   d Z ddlmZ ejr$ddlmZ nedƒ‚dS )aÙ  Module implementing Krack Attack on client, as a custom WPA Access Point

Requires the python cryptography package v1.7+. See https://cryptography.io/

More details on the attack can be found on https://www.krackattacks.com/

Example of use (from the scapy shell):
>>> load_module("krack")
>>> KrackAP(
    iface="mon0",               # A monitor interface
    ap_mac='11:22:33:44:55:66', # MAC (BSSID) to use
    ssid="TEST_KRACK",          # SSID
    passphrase="testtest",      # Associated passphrase
).run()

Then, on the target device, connect to "TEST_KRACK" using "testtest" as the
passphrase.
The output logs will indicate if one of the vulnerability have been triggered.

Outputs for vulnerable devices:
- IV re-use!! Client seems to be vulnerable to handshake 3/4 replay
  (CVE-2017-13077)
- Broadcast packet accepted twice!! (CVE-2017-13080)
- Client has installed an all zero encryption key (TK)!!

For patched devices:
- Client is likely not vulnerable to CVE-2017-13080
é    )Úconf)ÚKrackAPzbCannot import Krack module due to missing dependency. Please install python{3}-cryptography v1.7+.N)Ú__doc__Zscapy.configr   Zcrypto_validZscapy.modules.krack.automatonr   ÚImportError© r   r   úS/var/www/html/gsl.tools/lib/python3.9/site-packages/scapy/modules/krack/__init__.pyÚ<module>   s   