vanhoefm / krackattacks-scripts

Other
3.33k stars 768 forks source link

./krack-test-client.py Error #101

Open CanSJun opened 1 year ago

CanSJun commented 1 year ago

Adaptor : Archer T9UH Adaptor Kali linux 2023

information : iw list

Wiphy phy0 wiphy index: 0 max # scan SSIDs: 9 max scan IEs length: 2304 bytes max # sched scan SSIDs: 0 max # match sets: 0 Retry short limit: 7 Retry long limit: 4 Coverage class: 0 (up to 0m) Supported Ciphers:

problems :


if wlan0 type is managed

phy#0 Interface wlan0 ifindex 3 wdev 0x1 addr 7c:c2:c6:39:a5:da type managed channel 2 (2417 MHz), width: 40 MHz, center1: 2427 MHz txpower 20.00 dBm


┌──(venv)─(root㉿kali)-[/home/kali/krackattacks-scripts/krackattack] └─# ./krack-test-client.py --tptk [04:40:47] Note: disable Wi-Fi in network manager & disable hardware encryption. Both may interfere with this script. command failed: Operation not supported (-95) Traceback (most recent call last): File "/home/kali/krackattacks-scripts/krackattack/./krack-test-client.py", line 663, in attack.run(options=options) File "/home/kali/krackattacks-scripts/krackattack/./krack-test-client.py", line 465, in run self.configure_interfaces() File "/home/kali/krackattacks-scripts/krackattack/./krack-test-client.py", line 455, in configure_interfaces subprocess.check_output(["iw", self.nic_iface, "interface", "add", self.nic_mon, "type", "monitor"]) File "/usr/lib/python3.11/subprocess.py", line 466, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 571, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['iw', 'wlan0', 'interface', 'add', 'monwlan0', 'type', 'monitor']' returned non-zero exit status 161. [04:40:47] Closing hostapd and cleaning up ...



if wlan0 type is monitor phy#0 Interface wlan0 ifindex 3 wdev 0x1 addr 7c:c2:c6:39:a5:da type monitor channel 2 (2417 MHz), width: 40 MHz, center1: 2427 MHz txpower 20.00 dBm


./krack-test-client.py --tptk
[04:42:39] Failed to get MAC address of wlan0. Specify an existing interface in hostapd.conf at the line "interface=NAME".
Traceback (most recent call last): File "/home/kali/krackattacks-scripts/krackattack/./krack-test-client.py", line 661, in attack = KRAckAttackClient() ^^^^^^^^^^^^^^^^^^^ File "/home/kali/krackattacks-scripts/krackattack/./krack-test-client.py", line 277, in init self.apmac = scapy.arch.get_if_hwaddr(interface) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kali/krackattacks-scripts/krackattack/venv/lib/python3.11/site-packages/scapy/arch/init.py", line 39, in get_if_hwaddr raise Scapy_Exception("Unsupported address family (%i) for interface [%s]" % (addrfamily, iff)) # noqa: E501 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ scapy.error.Scapy_Exception: Unsupported address family (803) for interface [wlan0]