From 4fc8340205359dff7b03c0b8449635db94ca4cc6 Mon Sep 17 00:00:00 2001 From: Mathy Vanhoef Date: Tue, 5 Jan 2021 20:45:34 +0400 Subject: [PATCH] fragattack: minor driver check bug --- research/fraginternals.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/research/fraginternals.py b/research/fraginternals.py index aee8a491f..c77f6cb53 100644 --- a/research/fraginternals.py +++ b/research/fraginternals.py @@ -729,9 +729,7 @@ class Daemon(metaclass=abc.ABCMeta): log(ERROR, "You are not running patched drivers, meaning this tool may give incorrect results!") log(STATUS, "To ignore this warning and timeout add the parameter --no-drivercheck") time.sleep(5) - - version = open("/sys/module/mac80211/parameters/fragattack_version").read().strip() - if version != FRAGVERSION: + elif FRAGVERSION != open("/sys/module/mac80211/parameters/fragattack_version").read().strip(): log(ERROR, f"This script has version {FRAGVERSION} but the modified drivers are version {version}.") log(ERROR, f"Please recompile and reinstall the modified drivers (see the README for details).") quit(1)