Wifi Nuisances¶
libpcap missing netlink¶
On some Debian-based installations, libpcap builds without libnl.
This will cause weird perversions
log entries for devices not supporting monitor mode, when they clearly do
Kismet, Nzyme, and Aircrack-ng failing collection
possible hair loss
Prepare libpcap build¶
For Kali, add /etc/apt/sources.list.d/kali-src.list
deb-src http://http.kali.org/kali kali-rolling main non-free contrib
Create a build environment, create a source path, and download the source package
1apt-get update
2apt-get install build-essential libnl-genl-3-dev
3mkdir src; cd src
4apt source libpcap
5cd libpcap-*
Modify libpcap build¶
Modify debian/control to include libnl
Add libnl-genl-3-dev, to every Build-Depends and Depends block
See example below. The punctuation matters.
1Source: libpcap
2Section: devel
3Priority: optional
4Maintainer: Romain Francoise <rfrancoise@debian.org>
5Build-Depends: autotools-dev,
6 bison,
7 debhelper (>= 8.9.7),
8 dh-autoreconf,
9 flex,
10 libbluetooth-dev [linux-any],
11 libdbus-1-dev,
12 linux-libc-dev (>= 2.6.27) [i386]
1Source: libpcap
2Section: devel
3Priority: optional
4Maintainer: Romain Francoise <rfrancoise@debian.org>
5Build-Depends: autotools-dev,
6 bison,
7 debhelper (>= 8.9.7),
8 dh-autoreconf,
9 flex,
10 libbluetooth-dev [linux-any],
11 libdbus-1-dev,
12 libnl-genl-3-dev,
13 linux-libc-dev (>= 2.6.27) [i386]
Build libpcap¶
Install missing dependencies and build!
1apt build-dep .
2# Install still-missing or conflicting dependencies, if needed
3# In my first run on a Debian box, I had to...
4# apt-get install libdbus-1-3=1.12.20-0+deb10u1 libbluetooth3=5.50-1.2~deb10u1
5# In my second run on a Kali-pi box, I was already set.
6dpkg-buildpackage -uc -us -b
7cd ..
8# Look at the list of created .deb packages. Pick one and "dpkg -i" it.
9# Alternately, run this command and it will install all you built, culmunating
10# in the latest version for your architecture.
11/bin/ls *.deb | egrep -v "dbg|dev" | grep `uname -r | perl -pe 's/.*-//'` | xargs -i dpkg -i {}