diff --git a/Makefile b/Makefile old mode 100644 new mode 100755 diff --git a/_config.yml b/_config.yml deleted file mode 100644 index c741881..0000000 --- a/_config.yml +++ /dev/null @@ -1 +0,0 @@ -theme: jekyll-theme-slate \ No newline at end of file diff --git a/bash b/bash deleted file mode 100644 index 2d67675..0000000 --- a/bash +++ /dev/null @@ -1,9 +0,0 @@ - -
-The requested URL /fluxion was not found on this server.
-Additionally, a 404 Not Found -error was encountered while trying to use an ErrorDocument to handle the request.
- diff --git a/changelog b/changelog deleted file mode 100644 index 4f0041b..0000000 --- a/changelog +++ /dev/null @@ -1,20 +0,0 @@ ------------------------ General ----------------------- -revision=1 - - ----------------------- Changelog ---------------------- - -[Version: 2 , Revision 1] - -- rewrite code -- move files - - exitmode to lib/ - - source files to language - -- improve handeling -- remove disclaimer -- remove git support -- add checkupdate function -- fix airmon file - ----------------------- Changelog ---------------------- diff --git a/fluxion b/fluxion.sh similarity index 97% rename from fluxion rename to fluxion.sh index 0bce709..6d9de6c 100755 --- a/fluxion +++ b/fluxion.sh @@ -36,7 +36,7 @@ HANDSHAKE_PATH="/root/handshakes" PASSLOG_PATH="/root/pwlog" WORK_DIR=`pwd` DEAUTHTIME="9999999999999" -revision=8 +revision=9 version=2 IP=192.168.1.1 RANG_IP=$(echo $IP | cut -d "." -f 1,2,3) @@ -55,7 +55,6 @@ 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" @@ -88,7 +87,7 @@ function conditional_clear() { } function airmon { - chmod +x lib/airmon/airmon + chmod +x lib/airmon/airmon.sh } airmon @@ -132,7 +131,7 @@ fi #Function to executed in case of unexpected termination trap exitmode SIGINT SIGHUP -source lib/exitmode +source lib/exitmode.sh #Languages for the web interface source language/source @@ -151,13 +150,6 @@ function top(){ } -##################################### < END OF CONFIGURATION SECTION > ##################################### - - - - - - ############################################## < START > ############################################## # Check requirements @@ -424,20 +416,18 @@ if [ $FLUX_DEBUG != 1 ]; then read -N1 doupdate echo -ne "$transparent" doupdate=${doupdate:-"Y"} - if [ "$doupdate" = "Y" ]; then - - cp $0 $HOME/flux_rev-$revision.backup - curl "https://raw.githubusercontent.com/FluxionNetwork/fluxion/master/fluxion" -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 - exit - fi + if [ "$doupdate" = "Y" ]; then + cp $0 $HOME/flux_rev-$revision.backup + curl "https://raw.githubusercontent.com/FluxionNetwork/fluxion/master/fluxion" -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 + exit + fi fi fi echo "" @@ -459,14 +449,6 @@ function infoap { echo -e " "$blue"BSSID"$transparent" = $mac (\e[1;33m$Host_MAC_MODEL $transparent)" echo } - -############################################## < START > ############################################## - - - - - - ############################################### < MENU > ############################################### # Windows + Resolution @@ -548,7 +530,7 @@ language; setinterface function language { iptables-save > $DUMP_PATH/iptables-rules - conditional_clear + conditional_clear if [ "$FLUX_AUTO" = "1" ];then source $WORK_DIR/language/en; setinterface @@ -570,25 +552,25 @@ else echo -e " "$red"["$yellow"7"$red"]"$transparent" Italian " echo -e " "$red"["$yellow"8"$red"]"$transparent" Czech " echo -e " "$red"["$yellow"9"$red"]"$transparent" Greek " - echo -e " "$red"["$yellow"10"$red"]"$transparent" French " - echo -e " "$red"["$yellow"11"$red"]"$transparent" Slovenian " - echo " " + echo -e " "$red"["$yellow"10"$red"]"$transparent" French " + echo -e " "$red"["$yellow"11"$red"]"$transparent" Slovenian " + echo " " echo -n -e ""$red"["$blue"deltaxflux"$yellow"@"$white"fluxion"$red"]-["$yellow"~"$red"]"$transparent"" read yn echo "" case $yn in - 1 ) source $WORK_DIR/language/en; break;; - 2 ) source $WORK_DIR/language/ger; break;; - 3 ) source $WORK_DIR/language/ro; break;; - 4 ) source $WORK_DIR/language/tu; break;; - 5 ) source $WORK_DIR/language/esp; break;; - 6 ) source $WORK_DIR/language/ch; break;; - 7 ) source $WORK_DIR/language/it; break;; - 8 ) source $WORK_DIR/language/cz break;; - 9 ) source $WORK_DIR/language/gr; break;; - 10 ) source $WORK_DIR/language/fr; break;; - 11 ) source $WORK_DIR/language/svn; break;; - * ) echo "Unknown option. Please choose again"; conditional_clear ;; + 1 ) source $WORK_DIR/language/en; break;; + 2 ) source $WORK_DIR/language/ger; break;; + 3 ) source $WORK_DIR/language/ro; break;; + 4 ) source $WORK_DIR/language/tu; break;; + 5 ) source $WORK_DIR/language/esp; break;; + 6 ) source $WORK_DIR/language/ch; break;; + 7 ) source $WORK_DIR/language/it; break;; + 8 ) source $WORK_DIR/language/cz break;; + 9 ) source $WORK_DIR/language/gr; break;; + 10 ) source $WORK_DIR/language/fr; break;; + 11 ) source $WORK_DIR/language/svn; break;; + * ) echo "Unknown option. Please choose again"; conditional_clear ;; esac done fi @@ -612,8 +594,8 @@ function setinterface { done # Create a variable with the list of physical network interfaces - readarray -t wirelessifaces < <(./lib/airmon/airmon |grep "-" | cut -d- -f1) - INTERFACESNUMBER=`./lib/airmon/airmon | grep -c "-"` + readarray -t wirelessifaces < <(./lib/airmon/airmon.sh |grep "-" | cut -d- -f1) + INTERFACESNUMBER=`./lib/airmon/airmon.sh | grep -c "-"` if [ "$INTERFACESNUMBER" -gt "0" ]; then @@ -649,8 +631,8 @@ function setinterface { setinterface fi - readarray -t naggysoftware < <(./lib/airmon/airmon check $PREWIFI | tail -n +8 | grep -v "on interface" | awk '{ print $2 }') - WIFIDRIVER=$(./lib/airmon/airmon | grep "$PREWIFI" | awk '{print($(NF-2))}') + readarray -t naggysoftware < <(./lib/airmon/airmon.sh check $PREWIFI | tail -n +8 | grep -v "on interface" | awk '{ print $2 }') + WIFIDRIVER=$(./lib/airmon/airmon.sh | grep "$PREWIFI" | awk '{print($(NF-2))}') if [ ! "$(echo $WIFIDRIVER | egrep 'rt2800|rt73')" ]; then rmmod -f "$WIFIDRIVER" &>$flux_output_device 2>&1 @@ -675,7 +657,7 @@ function setinterface { break; done - WIFIMONITOR=$(./lib/airmon/airmon start $PREWIFI | grep "enabled on" | cut -d " " -f 5 | cut -d ")" -f 1) + WIFIMONITOR=$(./lib/airmon/airmon.sh start $PREWIFI | grep "enabled on" | cut -d " " -f 5 | cut -d ")" -f 1) WIFI_MONITOR=$WIFIMONITOR WIFI=$PREWIFI @@ -1328,7 +1310,7 @@ function creassl { function webinterface { - chmod 400 /root/server.pem + chmod 400 $DUMP_PATH/server.pem if [ "$FLUX_AUTO" = "1" ];then matartodo; ConnectionRESET; selection diff --git a/install/arch-install b/install/arch-install.sh similarity index 100% rename from install/arch-install rename to install/arch-install.sh diff --git a/language/bind b/language/bundle.sh old mode 100644 new mode 100755 similarity index 100% rename from language/bind rename to language/bundle.sh diff --git a/lib/airmon/airmon b/lib/airmon/airmon.sh similarity index 100% rename from lib/airmon/airmon rename to lib/airmon/airmon.sh diff --git a/lib/exitmode b/lib/exitmode.sh old mode 100644 new mode 100755 similarity index 100% rename from lib/exitmode rename to lib/exitmode.sh diff --git a/locale/de_DE.py b/locale/de_DE.py old mode 100644 new mode 100755 diff --git a/locale/en_EN.py b/locale/en_EN.py old mode 100644 new mode 100755 diff --git a/locale/en_EN.pyc b/locale/en_EN.pyc old mode 100644 new mode 100755 diff --git a/logos/logo1.jpg b/logos/logo1.jpg index 1ce1202..7b435c1 100644 Binary files a/logos/logo1.jpg and b/logos/logo1.jpg differ diff --git a/logos/logo2.jpg b/logos/logo2.jpg deleted file mode 100644 index 7b435c1..0000000 Binary files a/logos/logo2.jpg and /dev/null differ diff --git a/sites/siteinstaller.py b/sites/siteinstaller.py deleted file mode 100755 index 92da12a..0000000 --- a/sites/siteinstaller.py +++ /dev/null @@ -1,307 +0,0 @@ -#!/usr/bin/env python -# -*- coding: cp852 -*- - -import sys -import getopt -import os -import subprocess -sys.path.insert(0, './locale') - -# ################### -# ## OPTIONS ######## -# ################### -site_name = '' -site_language = '' -installed_sites = 0 -flux_cont = '' -#flux_comp_versions = ['0.24'] -flinstall_version = '0.11' -# ################### -class color: - PURPLE = '\033[95m' - CYAN = '\033[96m' - DARKCYAN = '\033[36m' - BLUE = '\033[94m' - GREEN = '\033[92m' - YELLOW = '\033[93m' - RED = '\033[91m' - BOLD = '\033[1m' - UNDERLINE = '\033[4m' - END = '\033[0m' - -def main(argv): - global site_name, site_language - if os.geteuid() != 0: - exit('You need to have root privileges to run this script.\nPlease try again, this time using \'sudo\'. Exiting....') - sys.exit() - usage = '>>>\tUsage:\n' +'\t\tsiteinstaller.py -f