From 39162bfa5d3cae2b20d1b11aff0138288338fb3b Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Sun, 24 Jul 2016 22:19:40 +0200 Subject: [PATCH] version 3.0 - switch to channel 6 (should do things faster) - return wifi interface to normal after stuff is done --- smashbroshaxer | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/smashbroshaxer b/smashbroshaxer index 28ed642..94fac67 100755 --- a/smashbroshaxer +++ b/smashbroshaxer @@ -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​" }