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)