mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-24 16:28:23 -05:00
fragattack: check hostap and driver for version 1.3
This commit is contained in:
parent
c5648ebcd2
commit
ac5dea5903
@ -79,7 +79,7 @@
|
||||
#define HOSTAPD_GLOBAL_CTRL_IFACE_PORT_LIMIT 50
|
||||
#endif /* CONFIG_CTRL_IFACE_UDP */
|
||||
|
||||
const char *FRAGATTACK_VERSION = "1.2";
|
||||
const char *FRAGATTACK_VERSION = "1.3";
|
||||
|
||||
static void hostapd_ctrl_iface_send(struct hostapd_data *hapd, int level,
|
||||
enum wpa_msg_type type,
|
||||
|
@ -11,7 +11,7 @@ from wpaspy import Ctrl
|
||||
from scapy.contrib.wpa_eapol import WPA_key
|
||||
from scapy.arch.common import get_if_raw_hwaddr
|
||||
|
||||
FRAGVERSION = "1.2"
|
||||
FRAGVERSION = "1.3"
|
||||
|
||||
# ----------------------------------- Utility Commands -----------------------------------
|
||||
|
||||
@ -730,6 +730,12 @@ class Daemon(metaclass=abc.ABCMeta):
|
||||
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:
|
||||
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)
|
||||
|
||||
# 1. Assign/create interfaces according to provided options
|
||||
if self.options.hwsim:
|
||||
# TODO: Automatically create both interfaces?
|
||||
|
@ -68,7 +68,7 @@
|
||||
#include <net/ethernet.h>
|
||||
#endif
|
||||
|
||||
const char *FRAGATTACK_VERSION = "1.2";
|
||||
const char *FRAGATTACK_VERSION = "1.3";
|
||||
|
||||
static int wpa_supplicant_global_iface_list(struct wpa_global *global,
|
||||
char *buf, int len);
|
||||
|
Loading…
Reference in New Issue
Block a user