O'Reilly logo

Penetration Testing with Perl by Swizec Teller

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required