Skip to content

Instantly share code, notes, and snippets.

@momenbasel
Last active June 6, 2024 21:26
Show Gist options
  • Save momenbasel/0bbaea4014503c659cc93705466c295d to your computer and use it in GitHub Desktop.
Save momenbasel/0bbaea4014503c659cc93705466c295d to your computer and use it in GitHub Desktop.
tp-link Tl-wn722n v2/v3 monitoring && packet injection. atheros ar9271
apt update -y && apt upgrade -y && apt dist-upgrade
sudo apt-get install linux-headers-$(uname -r) -y
sudo apt install bc -y
sudo rmmod r8188eu.ko
git clone https://github.com/aircrack-ng/rtl8188eus
cd rtl8188eus
sudo -i
echo "blacklist r8188eu.ko" > "/etc/modprobe.d/realtek.conf"
exit
make
sudo make install
sudo modprobe 8188eu
echo "testing monitor-mode"
sudo airmon-ng check kill
sudo ip link set wlan0 down
sudo iw dev wlan0 set type monitor
sudo ifconfig wlan0 up
echo "testing packet injection"
sudo aireplay-ng -9 wlan0
#reboot
echo "the device will reboot ..."
sudo reboot
@sintua25
Copy link

Excuse me sir, what version of linux are we use sir?

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