1
0
forked from ports/contrib

mdk4: initial commit, v4.1

This commit is contained in:
Alexandr Savca 2020-11-23 13:13:08 +02:00
parent faca667716
commit 899c0383ea
3 changed files with 36 additions and 0 deletions

7
mdk4/.footprint Normal file
View File

@ -0,0 +1,7 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/sbin/
-rwxr-xr-x root/root usr/sbin/mdk4
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/man/
drwxr-xr-x root/root usr/share/man/man8/
-rw-r--r-- root/root usr/share/man/man8/mdk4.8.gz

5
mdk4/.signature Normal file
View File

@ -0,0 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF32FIrAKgrGGTHmhFyKx0Ka1sVrjm8TGHyBKIB7quVYvKFPfx/+C5Gyuzj5p4T2IwqNs7bYp7hwAs8URxcjGYaQ0=
SHA256 (Pkgfile) = 0a3c473130cb9e2ec56040461787017ac1a2201332331258d1379b47f3b87baa
SHA256 (.footprint) = 6d1f5fcca5b121e981420ecfdc57a14bad8f39b42506fb1f711c74b70101bc1c
SHA256 (mdk4-4.1.tar.gz) = 38e9a28dbb4bfeaa1e6fef7117a324305472990f0d47582c103699fa505e1ecf

24
mdk4/Pkgfile Normal file
View File

@ -0,0 +1,24 @@
# Description: Exploit common IEEE 802.11 protocol weaknesses
# URL: https://github.com/charlesxsh/mdk3-master
# Maintainer: Alexandr Savca, alexandrsavca89 at gmail dot com
# Depends on: libnl libpcap
name=mdk4
version=4.1
release=1
source=(https://github.com/aircrack-ng/mdk4/archive/$version/$name-$version.tar.gz)
build() {
cd $name-$version
# remove default debug/optimization flags
sed -i 's/-g -O3//' src/Makefile src/attacks/Makefile
EXTRAFLAGS="-I.. -I/usr/include/libnl3 -DCONFIG_LIBNL30 -DCONFIG_LIBNL"
make CFLAGS="$CFLAGS $EXTRAFLAGS" -j1 # fix parallel build
make -C src install PREFIX=$PKG/usr
# install man page manually
install -Dm644 man/mdk4.1 $PKG/usr/share/man/man8/mdk4.8
}