fragattack: minor driver check bug

This commit is contained in:
Mathy Vanhoef 2021-01-05 20:45:34 +04:00
parent 0465abe64c
commit 4fc8340205

View File

@ -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)