To sniff packets in Perl on a WNIC, let's use RFMON on our device. We start by writing a small script to check the mode and enable it if not yet enabled. We will be using
iw again, and we will create a VAP device from our WNIC. Let's first use Perl to list the local 802.11 devices and then create a VAP on our
These exercises are strictly for us to learn how to step through the packets on a per-byte basis and extract information as we see fit. Not every system will be the same in this aspect, as some kernel drivers and modules, hardware firmware, and other software libraries used in these examples might affect the beginning offset. As stated in an earlier chapter, it is best to work closely with Wireshark ...