version 3.0

- switch to channel 6 (should do things faster)
- return wifi interface to normal after stuff is done
This commit is contained in:
Christopher Roy Bratusek 2016-07-24 22:19:40 +02:00
parent 4b9b208af6
commit 39162bfa5d

View File

@ -4,7 +4,7 @@ basedir=$(readlink -m "${BASH_SOURCE[0]}")
basedir=$(dirname ${basedir})
reldate="2016/07/24"
version="2.0"
version="3.0"
if [[ $(uname -m) == "x86_64" ]]; then
YAD=${basedir}/bin/yad.64
@ -19,12 +19,16 @@ hax_my_smash () {
"sudo ifconfig ${device} down && \
sudo iwconfig ${device} mode monitor && \
sudo ifconfig ${device} up && \
sudo iwconfig ${device} channel 6 && \
yes | sudo ${AIREPLAY} \
--interactive \
-r ${replay} \
-h 59:ee:3f:2a:37:e0 \
-x 20 \
${device}"
${device} && \
sudo ifconfig ${device} down && \
sudo iwconfig ${device} mode managed && \
sudo ifconfig ${device} up"
}