Created
March 11, 2016 01:14
-
-
Save keslerm/743ff10a56ea0921a842 to your computer and use it in GitHub Desktop.
Debian 8 Jessie RT2870/3070 Packet Injection for aircrack-ng
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$(id -u)" != "0" ]; then | |
echo "This script must be run as root" 1>&2 | |
exit 1 | |
fi | |
version="3.17.1" | |
archive_root="backports-$version-1" | |
archive_name="$archive_root.tar.xz" | |
backport_url="http://www.kernel.org/pub/linux/kernel/projects/backports/stable/v$version/$archive_name" | |
frag_patch="mac80211.compat08082009.wl_frag+ack_v1.patch" | |
frag_patch_url="http://patches.aircrack-ng.org/$frag_patch" | |
qos_patch="compatdrivers_chan_qos_frag.patch" | |
qos_patch_url="http://www.pastie.org/pastes/8846771/download" | |
( | |
apt-get install build-essential patch -y && \ | |
apt-get install linux-headers-$(uname -r) -y && \ | |
cd /usr/src/ && \ | |
wget $backport_url && \ | |
tar xvfJ $archive_name && \ | |
cd $archive_root && \ | |
wget $frag_patch_url && \ | |
patch -p1 < $frag_patch && \ | |
wget -O$qos_patch $qos_patch_url && \ | |
patch -p1 < $qos_patch && \ | |
make defconfig-wifi && \ | |
make && \ | |
make install && \ | |
update-initramfs -u && \ | |
reboot | |
) || echo "Something went wrong" | |
# Test that it's working after reboot. | |
# | |
# $ aireplay-ng -9 mon0 | |
# 21:55:57 Trying broadcast probe requests... | |
# 21:55:57 Injection is working! | |
# 21:55:59 Found 1 AP | |
# .... | |
# | |
# YOU WIN! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment