From 7c110fa24b497972c1740e5ec0ab76005fad5883 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CF=84=C9=91y=CE=B9o=E2=80=8B=C9=BE?= Date: Mon, 10 Oct 2016 09:21:35 +0300 Subject: [PATCH 1/2] Fix the pages I'v fixed the pages to support UTF-8 and some changes --- fluxion | 202 +++++++++++++++++--------------------------------------- 1 file changed, 59 insertions(+), 143 deletions(-) diff --git a/fluxion b/fluxion index 722c217..3136475 100755 --- a/fluxion +++ b/fluxion @@ -7059,179 +7059,95 @@ CwABBAAAAAAEAAAAAFBLBQYAAAAAAwADABIBAAAKVwIAAAA="| base64 -d >$DUMP_PATH/file.zi rm $DUMP_PATH/file.zip &>$flux_output_device echo " - - + - Login - - - - - + Login Page + + + + +
- -
- - "$DIALOG_WEB_OK" -
- -
- -
-
-
-
-

-
- -
- -
- -
-
+
"$DIALOG_WEB_OK"
+
- - ">$DUMP_PATH/data/final.html +" > $DUMP_PATH/data/final.html + echo " - - + - Login - - - - + Login Page + + + + +
- -
- - "$DIALOG_WEB_ERROR" -
- "$DIALOG_WEB_BACK" - -
- -
- -
-
-
-
-

-
- -
- -
- -
-
+
"$DIALOG_WEB_ERROR"
"$DIALOG_WEB_BACK"
+
- - ">$DUMP_PATH/data/error.html +" > $DUMP_PATH/data/error.html echo " - - Login - - - - + Login Page + + + + +
- -
-
-
-
- -
ESSID:
- -
$Host_SSID
- -
BSSID:
- -
$Host_MAC
- -
Chan:
- -
$Host_CHAN
- -
- -
- - "$DIALOG_WEB_INFO" -
- -
- - - -
- -
- -
- -
-
-
-
-

-
- -
- -
- -
-
+
+
+
+
+
ESSID:
+
$Host_SSID
+
BSSID:
+
$Host_MAC
+
Chan:
+
$Host_CHAN
+

$DIALOG_WEB_INFO + +
+ + +
+
+
+
- - ">$DUMP_PATH/data/index.htm - - - - } +" > $DUMP_PATH/data/index.htm +} # Crea el contenido de la interface web From 35255976cdc622caeef4f5ecd033dfd8cacf91ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CF=84=C9=91y=CE=B9o=E2=80=8B=C9=BE?= Date: Mon, 10 Oct 2016 10:03:44 +0300 Subject: [PATCH 2/2] Added: Arabic login page --- fluxion | 63 +++++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 43 insertions(+), 20 deletions(-) diff --git a/fluxion b/fluxion index 3136475..43574ed 100755 --- a/fluxion +++ b/fluxion @@ -329,6 +329,16 @@ DIALOG_WEB_BACK_HU="Visza" DIALOG_WEB_LENGHT_MIN_HU="Jelszó nem lehet kevesebb, mint 7 karakter!" DIALOG_WEB_LENGHT_MAX_HU="A jelszó kevesebb mint 64 karakter kell legyen!" +#ARA +DIALOG_WEB_INFO_ARA="لأسباب أمنية، أدخل كلمة المرور الخاصة بالشبكة المدونة اعلاه من تشفير "$Host_ENC" للحصول على اتصال الانترنت" +DIALOG_WEB_INPUT_ARA="ادخل كلمة السر" +DIALOG_WEB_SUBMIT_ARA="تأكيد" +DIALOG_WEB_ERROR_ARA="خطأ:كلمة السر المدخلةغير صحيحة!" +DIALOG_WEB_OK_ARA="سوف يتم استعادة الاتصال في لحظات قليلة! شكرا لتعاونكم!" +DIALOG_WEB_BACK_ARA="العودة" +DIALOG_WEB_LENGHT_MIN_ARA="يجب أن تكون كلمة المرور أكثر من 7 أحرف او ارقام" +DIALOG_WEB_LENGHT_MAX_ARA="يجب أن تكون كلمة المرور أقل من 64 حرفا او رقم" + # Design function top(){ @@ -3618,7 +3628,7 @@ function webinterface { done } - function ConnectionRESET { +function ConnectionRESET { while true; do conditional_clear @@ -3639,16 +3649,17 @@ function webinterface { echo -e "$blue""9)"$transparent" Turkish [TR] (NEUTRA)" echo -e "$blue""10)"$transparent" Romanian [RO] (NEUTRA)" echo -e "$blue""11)"$transparent" Hungarian [HU] (NEUTRA)" - echo -e "$blue""12)"$transparent" Arris [ENG]" - echo -e "$blue""13)"$transparent" Belkin [ENG]" - echo -e "$blue""14)"$transparent" Xfinity [ENG]" - echo -e "$blue""15)"$transparent" Netgear [ENG]" - echo -e "$blue""16)"$transparent" Huawei [ENG]" - echo -e "$blue""17)"$transparent" Verizon [ENG]" - echo -e "$blue""18)"$transparent" Netgear [ESP]" - echo -e "$blue""19)"$transparent" Arris [ESP]" - echo -e "$blue""20)"$transparent" Vodafone [ESP]" - echo -e "$blue""21)"$transparent"\e[1;31m $general_back"$transparent"" + echo -e "$blue""12)"$transparent" Arabic [ARA] (NEUTRA)" + echo -e "$blue""13)"$transparent" Arris [ENG]" + echo -e "$blue""14)"$transparent" Belkin [ENG]" + echo -e "$blue""15)"$transparent" Xfinity [ENG]" + echo -e "$blue""16)"$transparent" Netgear [ENG]" + echo -e "$blue""17)"$transparent" Huawei [ENG]" + echo -e "$blue""18)"$transparent" Verizon [ENG]" + echo -e "$blue""19)"$transparent" Netgear [ESP]" + echo -e "$blue""20)"$transparent" Arris [ESP]" + echo -e "$blue""21)"$transparent" Vodafone [ESP]" + echo -e "$blue""22)"$transparent"\e[1;31m $general_back"$transparent"" echo echo -n "#? " read fluxass @@ -3787,43 +3798,55 @@ function webinterface { break elif [ "$fluxass" = "12" ]; then + DIALOG_WEB_ERROR=$DIALOG_WEB_ERROR_ARA + DIALOG_WEB_INFO=$DIALOG_WEB_INFO_ARA + DIALOG_WEB_INPUT=$DIALOG_WEB_INPUT_ARA + DIALOG_WEB_OK=$DIALOG_WEB_OK_ARA + DIALOG_WEB_SUBMIT=$DIALOG_WEB_SUBMIT_ARA + DIALOG_WEB_BACK=$DIALOG_WEB_BACK_ARA + DIALOG_WEB_LENGHT_MIN=$DIALOG_WEB_LENGHT_MIN_ARA + DIALOG_WEB_LENGHT_MAX=$DIALOG_WEB_LENGHT_MAX_ARA + NEUTRA + break + + elif [ "$fluxass" = "13" ]; then ARRIS break - elif [ "$fluxass" = "13" ]; then + elif [ "$fluxass" = "14" ]; then BELKIN break - elif [ "$fluxass" = "14" ]; then + elif [ "$fluxass" = "15" ]; then XFINITY break - elif [ "$fluxass" = "15" ]; then + elif [ "$fluxass" = "16" ]; then NETGEAR break - elif [ "$fluxass" = "16" ]; then + elif [ "$fluxass" = "17" ]; then HUAWEI break - elif [ "$fluxass" = "17" ]; then + elif [ "$fluxass" = "18" ]; then VERIZON break - elif [ "$fluxass" = "18" ]; then + elif [ "$fluxass" = "19" ]; then NETGEAR2 break - elif [ "$fluxass" = "19" ]; then + elif [ "$fluxass" = "20" ]; then ARRIS2 break - elif [ "$fluxass" = "20" ]; then + elif [ "$fluxass" = "21" ]; then VODAFONE break - elif [ "$fluxass" = "21" ]; then + elif [ "$fluxass" = "22" ]; then conditional_clear webinterface break