Perl and Aircrack-ng

In this section, we will be using the Aircrack-ng suite and two specific tools from it, Airodump-ng and Aireplay-ng. Airodump-ng is an 802.11 protocol analyzer that parses out information from nearby wireless traffic. It also has the wonderful ability to parse this data into a CSV file, which we can easily use with Perl. For instance, if we do not want to reinvent the 802.11 packet sniffer wheel, but we want to represent statistical data from a particular AP or a set of APs from a target, we can run Airodump-ng, as shown in the following command:

root@wnld960:~# airodump-ng -w air mon0
 CH 11 ][ Elapsed: 4 s ][ 2014-05-03 02:49
 BSSID              PWR  Beacons    #Data, #/s  CH  MB   ENC  CIPHER AUTH ESSID
00:1D:D0:F6:94:B0 -61 4 0 0 3 54e WPA2 ...

Get Penetration Testing with Perl now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.