O'Reilly logo

Kali Linux Intrusion and Exploitation Cookbook by Ishan Girdhar, Dhruv Shah

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

Sniffing network traffic

In this recipe, we are going to understand the basics of using a wireless adaptor to sniff wireless data packets; to do so we will have to change the wireless card to Monitor mode. For sniffing we will be using the airodump-ng command from the aircrack-ng suite.

Getting ready

We will be using the Alfa card for this exercise; ensure that the wireless adaptor is connected as in the earlier recipe and we can start sniffing traffic.

How to do it...

  1. If the wireless device is not turned on, turn it on using the following command:
          ifconfig wlan0 up 
    
  2. Put the card into monitor mode using the following command:
          airmon-ng start wlan0
    

    The output will be as shown in the following screenshot:

  3. Now that we have a monitor interface ...

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