Name: mdk4 Version: 4.2 Release: 1%{?dist} Summary: Proof-of-concept Wi-Fi testing tool for IEEE 802.11 networks License: GPL-3.0-only URL: https://github.com/aircrack-ng/mdk4 Source0: https://github.com/aircrack-ng/mdk4/archive/refs/tags/%{version}.tar.gz BuildRequires: gcc BuildRequires: libnl3-devel BuildRequires: libpcap-devel BuildRequires: make %description MDK4 is a Wi-Fi testing tool that implements several Denial-of-Service and beacon-flooding attacks against IEEE 802.11 networks, exploiting weaknesses in the protocol itself. %prep %autosetup -n mdk4-%{version} # pthread_t is an integer: NULL initializer no longer compiles sed -i 's/pthread_t chan_sniffer = NULL;/pthread_t chan_sniffer = 0;/' src/channelhopper.c %build # -fcommon still needed (GCC 10+ multiple defs); DLT/MAGIC macros gone from # libpcap headers; command-line CFLAGS override also drops common.mak's # libnl/API defines, so carry them here %make_build -C src CFLAGS="%{optflags} -fcommon -DCONFIG_LIBNL -DCONFIG_LIBNL30 -I%{_includedir}/libnl3 -DTCPDUMP_MAGIC=0xa1b2c3d4 -DLINKTYPE_ETHERNET=1 -DLINKTYPE_IEEE802_11=105 -DLINKTYPE_PRISM_HEADER=119 -DLINKTYPE_RADIOTAP_HDR=127 -DLINKTYPE_PPI_HDR=192" %install install -Dpm755 src/mdk4 %{buildroot}%{_sbindir}/mdk4 install -Dpm644 man/mdk4.2 %{buildroot}%{_mandir}/man8/mdk4.8 %files %license COPYING %{_sbindir}/mdk4 %{_mandir}/man8/mdk4.8* %changelog * Sun Oct 18 2026 Caio Bruno - 4.2-1 - Initial package