Skip to content

Instantly share code, notes, and snippets.

@lewixlabs
Last active December 2, 2025 21:54
Show Gist options
  • Select an option

  • Save lewixlabs/e6b59b742ecb072f5747a908e14f412c to your computer and use it in GitHub Desktop.

Select an option

Save lewixlabs/e6b59b742ecb072f5747a908e14f412c to your computer and use it in GitHub Desktop.
How to enable monitor mode for TP-LINK TL-WN722N V2/V3/Vx
# Credits:
# - https://www.hackster.io/thatiotguy/enable-monitor-mode-in-tp-link-tl-wn722n-v2-v3-128fc6
# - https://github.com/aircrack-ng/rtl8188eus/issues/234
# Tested on Kali Linux 2022.3
# Commands used to Setup the Adapter from aircrack repository
sudo apt update
sudo apt install bc -y
sudo rmmod r8188eu.ko
git clone https://github.com/gglluukk/rtl8188eus
cd rtl8188eus
sudo -i
echo "blacklist r8188eu" > "/etc/modprobe.d/realtek.conf"
exit
make
sudo make install
sudo modprobe 8188eu
# Commands to enable monitor mode after setting up
ifconfig wlan0 down
airmon-ng check kill
iwconfig wlan0 mode monitor
ifconfig wlan0 up
iwconfig
# Play with airodump-ng to test :)
airodump-ng wlan0
@mb01LINX
Copy link

how to uninstall?

@aleph042
Copy link

how to uninstall?

sudo make uninstall

@SantiagoRatto
Copy link

Update if anyone needs this in 2025 for smooth monitor mode:

First disable networking and wifi from task bar (right click on network icon)

sudo ifconfig wlan0 down
sudo ifconfig wlan1 down
sudo iwconfig wlan1 mode monitor
sudo rfkill unblock 3
sudo ifconfig wlan1 up

Then monitor mode is enabled with no conflict. airmon-ng check kill makes the device unusable for some reason and couldn't find any other way around it. To enable managed mode again:

sudo ifconfig wlan1 down
sudo iwconfig wlan1 mode managed
sudo rfkill unblock 1
sudo ifconfig wlan0 up
sudo ifconfig wlan1 up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment