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
wlan0
is Managed
but we need to change it to monitor mode for network hacking.
-
Disable the interface
wlan0
sudo ifconfig wlan0 down
-
Kill network-manager
sudo airmon-ng check kill
The output would be something like
Killing these processes:
PID Name
2143 wpa_supplicant
-
Change the mode to
monitor
sudo iwconfig wlan0 mode Monitor
-
Enable the interface
sudo ifconfig wlan0 up