From a41e1e7740a4bde91e97b3757c9fe41c365cce02 Mon Sep 17 00:00:00 2001 From: Mathy Vanhoef Date: Wed, 7 Oct 2020 13:44:23 +0400 Subject: [PATCH] Minor updates --- research/README.md | 2 +- research/fragattack.py | 2 +- research/fraginternals.py | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/research/README.md b/research/README.md index b04209f43..f436ac295 100644 --- a/research/README.md +++ b/research/README.md @@ -805,7 +805,7 @@ with this dongle. When connected to a USB2.0 port I found this dongle to be reli This device is generally not supported by default in most Linux distributions and requires manual installation of drivers. I tested it on Kali Linux after installing the driver using the instructions -on [https://github.com/aircrack-ng/rtl8812au](GitHub). Before plugging in the device, you must +on [GitHub](https://github.com/aircrack-ng/rtl8812au). Before plugging in the device, you must execute `modprobe 88XXau rtw_monitor_retransmit=1`. Once my patches have reached upstream repositories on Kali Linux you can simply install the driver using `sudo apt install realtek-rtl88xxau-dkms`, but for now you must manually install the driver from GitHub. diff --git a/research/fragattack.py b/research/fragattack.py index 05655119d..cb8fd0cec 100755 --- a/research/fragattack.py +++ b/research/fragattack.py @@ -5,7 +5,7 @@ # See README for more details. # Note that tests_*.py files are imported automatically -import glob, importlib +import glob, importlib, argparse from fraginternals import * # ----------------------------------- Main Function ----------------------------------- diff --git a/research/fraginternals.py b/research/fraginternals.py index 633c93785..7b87fea4b 100644 --- a/research/fraginternals.py +++ b/research/fraginternals.py @@ -6,7 +6,6 @@ from libwifi import * import abc, sys, socket, struct, time, subprocess, atexit, select, copy -import argparse import os.path from wpaspy import Ctrl from scapy.contrib.wpa_eapol import WPA_key @@ -708,7 +707,7 @@ class Daemon(metaclass=abc.ABCMeta): log(WARNING, "WARNING: Unable to check whether you are using patched drivers.") elif not os.path.exists("/sys/module/mac80211/parameters/fragattack_version"): log(ERROR, "You are not running patched drivers, meaning this tool may give incorrect results!") - log(STATUS, "To ignore this warning add the parameter --no-drivercheck") + log(STATUS, "To ignore this warning and timeout add the parameter --no-drivercheck") time.sleep(5) # 1. Assign/create interfaces according to provided options @@ -753,7 +752,7 @@ class Daemon(metaclass=abc.ABCMeta): with open("/sys/module/ath9k_htc/parameters/fragattack_fw") as fp: if not int(fp.read()) == 1: log(ERROR, "WARNING: It seems the ath9k_htc device is not using patched firmware!") - log(STATUS, "To ignore this warning add the parameter --no-drivercheck") + log(STATUS, "To ignore this warning and timeout add the parameter --no-drivercheck") time.sleep(5) except: log(WARNING, "WARNING: Unable to check if the ath9k_htc device is using patched firmware!")