Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save shayzogo/f8032b4c14f36be7052c78d7c089ba9a to your computer and use it in GitHub Desktop.

Select an option

Save shayzogo/f8032b4c14f36be7052c78d7c089ba9a to your computer and use it in GitHub Desktop.

Revisions

  1. @lewixlabs lewixlabs revised this gist Sep 6, 2020. No changes.
  2. @lewixlabs lewixlabs created this gist Sep 6, 2020.
    24 changes: 24 additions & 0 deletions TL-WN722N_monitormode.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    # Credits: https://www.hackster.io/thatiotguy/enable-monitor-mode-in-tp-link-tl-wn722n-v2-v3-128fc6
    # Tested on Kali Linux 2020.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/aircrack-ng/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 :)
    sudo airodump-ng wlan0