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* .. code-block:: 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 .. code-block:: bash :linenos: apt-get update apt-get install build-essential libnl-genl-3-dev mkdir src; cd src apt source libpcap cd 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. .. code-block:: yaml :linenos: :caption: Before Source: libpcap Section: devel Priority: optional Maintainer: Romain Francoise Build-Depends: autotools-dev, bison, debhelper (>= 8.9.7), dh-autoreconf, flex, libbluetooth-dev [linux-any], libdbus-1-dev, linux-libc-dev (>= 2.6.27) [i386] .. .. code-block:: yaml :linenos: :caption: After Source: libpcap Section: devel Priority: optional Maintainer: Romain Francoise Build-Depends: autotools-dev, bison, debhelper (>= 8.9.7), dh-autoreconf, flex, libbluetooth-dev [linux-any], libdbus-1-dev, libnl-genl-3-dev, linux-libc-dev (>= 2.6.27) [i386] .. Build libpcap ------------- * Install missing dependencies and build! .. code-block:: bash :linenos: apt build-dep . # Install still-missing or conflicting dependencies, if needed # In my first run on a Debian box, I had to... # apt-get install libdbus-1-3=1.12.20-0+deb10u1 libbluetooth3=5.50-1.2~deb10u1 # In my second run on a Kali-pi box, I was already set. dpkg-buildpackage -uc -us -b cd .. # Look at the list of created .deb packages. Pick one and "dpkg -i" it. # Alternately, run this command and it will install all you built, culmunating # in the latest version for your architecture. /bin/ls *.deb | egrep -v "dbg|dev" | grep `uname -r | perl -pe 's/.*-//'` | xargs -i dpkg -i {} ..