Wireless Modes

If we run the command iwconfig in Terminal, we will see our connected devices.

lo        no wireless extensions.

eth0      no wireless extensions.

wlan0     IEEE 802.11  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm   
          Retry short  long limit:2   RTS thr:off   Fragment thr:off
          Power Management:off
The default mode of the wlan0 is Managed but we need to change it to monitor mode for network hacking.

  1. Disable the interface wlan0

    sudo ifconfig wlan0 down
    

  2. Kill network-manager

    sudo airmon-ng check kill
    

The output would be something like

Killing these processes:

    PID Name
   2143 wpa_supplicant

  1. Change the mode to monitor

    sudo iwconfig wlan0 mode Monitor
    

  2. Enable the interface

    sudo ifconfig wlan0 up